Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am try to set the custom name servers for my domain.
I have two name servers with two different IP Address for ns1 and ns2
I have set the ns1 and ns2 record entry in my domain zone file
But still my domain name cant be resolved.
Here is zone file content:
$TTL 14400
@ 86400 IN SOA ns1.exampl.com. andyr.exampl.com. (
2013032202 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
exampl.com. IN NS ns1.exampl.com.
exampl.com. IN NS ns2.exampl.com.
exampl.com. IN A 12.12.12.12
ns1 IN A 12.12.12.12
ns2 IN A 12.12.12.12
localhost.exampl.com. IN A 127.0.0.1
exampl.com. IN MX 0 exampl.com.
www IN CNAME exampl.com.
ftp IN A 12.12.12.12
How can i check that my nameservers are working or not?
I have try to check with nslookp command :
root > nslookup ns1.example.com
It gives the following output:
;; Got SERVFAIL reply from 127.0.0.1, trying next server
Server: 127.0.0.1
Address: 127.0.0.1#53
I have two name servers with two different IP Address for ns1 and ns2
According to the zone file posted the 2 NS have the same IP (unless you put the same because the actual IPs are masked)
Also similar to the above, the zone file posted is for the zone exampl.com and you're using nslookup to resolve ns1.example.com. I guess you're testing for the same zone name
Also similar to the above, the zone file posted is for the zone exampl.com and you're using nslookup to resolve ns1.example.com. I guess you're testing for the same zone name
dig: couldn't get address for 'ns1.example.com': failure
dig: couldn't get address for 'ns2.example.com': failure
Use the IPs instead
Code:
dig ns1.exampl.com @12.12.12.12
Quote:
zone exampl.com/IN: loaded serial 2013032202
OK
The zonefile is correct. That good.
Quote:
Should i have to put the other Ip in ns2 record?
Yes, for redundancy the 2 NS RRs are better to use different IPs
Quote:
I am unable to undestand the following:
Quote:
Also similar to the above, the zone file posted is for the zone exampl.com and you're using nslookup to resolve ns1.example.com. I guess you're testing for the same zone name
What I mean is that you mix exampl.com and example.com in your posts.
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.5 <<>> ns1.example.com @12.12.12.12
;; global options: printcmd
;; connection timed out; no servers could be reached
Ok i understood that i mixed up with example and exampl.
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.5 <<>> ns1.example.com @12.12.12.12
;; global options: printcmd
;; connection timed out; no servers could be reached
You're supposed to replace 12.12.12.12 with the actual IP of your dns server
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.