My server was hacked into the other day so I had to have my host ghost the server back to it's original install and I've been trying to reconfigure everything all day. Everything is working great except when I try to send emails some are being returned back to me. At first I thought it was my mail server causing the errors but I've since found out it's my DNS. I have the following records created for one of my websites: (same as parent folder) Start of Authority (SOA) [32], host, hostmaster. (same as parent folder) Name Server (NS) ns2.mydomain.com (same as parent folder) Name Server (NS) ns1.mydomain.com (same as parent folder) Host (A) 55.55.555.555 (same as parent folder) Mail Exchanger (MX) [10] mail.mydomain.com mail Host (A) 55.55.555.555 www Host (A) 55.55.555.555 of course mydomain.com is really my domain and the ip address' above are just for this example. Now... when I run nslookup and run the following command: ls -t mx mydomain.com it returns the following: *** Can't list domain my domain.com: Query refused I fixed that by right clicking on that sites forward lookup zone and selecting properties. I then clicked on the Zone Transfers tab and changed the selection from "Onlt to servers listed on the Name Servers tab" to "To any server." I then ran the code again: ls -t mx mydomain.com This returned a sucessful result of: mydomain.com MX 10 mail.mydomain.com Alright... moving in the right direction. Next I tried to run this command: ls -t a mail.mydomain.com However, that results in the following being displayed: *** Can't list domain mail.mydomain.com: Non-existent domain Bummer... I try the following command: ls -t PTR 55.55.555.555 but this error is reported to the screen: *** Can't list domain 55.55.555.555: Non-existent domain So... how can I fix this? I had everything working fine before and I "thought" I set everything up correctly. Whoever helps me figure it out gets $20 and if two people help I'll split it up
I'm now thinking I need to configure my network connections to solve this problem. If I do Start -> Run -> nslookup a cmd window opens and it says: Default Server: 5-139-55-555.myhost.com address: 222.22.2.222 Those aren't the real numbers.... but that's what shows up. However, if I open up DNS in windows, right click on my HOST and choose "Launch Nslookup" the following is shown: ** Can't find server name for adderss 10.2.***.***: Non-existent domain Default Server: UnKnown Address: 10.2.***.*** So... knowing that... it looks like the hosts has a default IP that isn't correct right? If I open my network connections I have two connections. Local Area Connection 2 and Local Area Connection. In Local Area Connection 2 under TCP/IP it is set to obtain an IP address automatically and obtain DNS server address automatically. In Local Area Connection under TCP/IP it is set with values already. The IP address is the first IP address on my server (which I use for ns1.mydomain.com). The DNS server information has an IP address I've only scene here before. Knowing this... I'm guessing I need to configure Local Area Connection 2 right? I need to put some default values in there instead of having it figure out everything automatically. I'm worried about playing around with it though because I don't want to kick my server offline. I can see from running "ipconfig" under cmd.exe that the IP address for this card is the same ip address that nslookup has when it says it's not a valid domain. so maybe I need to enter the IP address that the server currently obtains automatically... enter the subnet mask... and then enter my own DNS servers? Would that work? What should I enter as the DNS server? The same IP address I entered for this card or the first IP address I'm using for ns1.mywebsite.com? Hopefully this makes sense