I have a DNS server running on CentOS 5, and it works fine for all my .com and .net domain names. When I try to set up a new zone for my .us domain name, it won’t resolve. Every time I try to do a nslookup for that domain, it returns the following:
# nslookup example.us
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can’t find example.us: SERVFAIL
I changed the domain name to post here, obviously. The zone file is an exact duplicate from one of my .com domains, but I changed the first line that identifies the root domain from the example.com. to example.us. Here is my .zone file:
$ttl 38400
example.us. IN SOA dns1.myworkingdomain.net. dns2.myworkingdomain.net. (
2007020400;
10800;
3600;
604800;
86400 )
@ IN NS dns1.myworkingdomain.net.
@ IN NS dns2.myworkingdomain.net.
@ IN MX 10 aspmx.l.google.com.
@ IN MX 20 alt1.aspmx.l.google.com.
@ IN MX 20 alt2.aspmx.l.google.com.
@ IN MX 30 aspmx2.googlemail.com.
@ IN MX 30 aspmx3.googlemail.com.
@ IN MX 30 aspmx4.googlemail.com.
@ IN MX 30 aspmx5.googlemail.com.
@ IN A 10.0.0.1
www IN CNAME @
googleffffffffffffffff IN CNAME google.com.
Bind starts without incident, no errors in the log or anything, but it never resolves. I am trying to do this to configure google apps with my new domain as a secondary domain. Any ideas?
The domain name is declared in my file. It is the first word in the second line. example.us.
I copied the file from my other domain, which is working perfectly. The only thing I changed is the reference to the domain on the second line from the accurately working domain to the new one. I also added this to the end of my named.conf file:
zone “example.us” IN {
type master;
file “data/example.us.zone”;
allow-update { none; };
allow-transfer { none; };
};
Which is just copied from one of the other domains and again, changed for the new domain.
I thought maybe it was the main hint file, named.root, but I downloaded the latest one from ftp.internic.net and restarted bind without any success. I have 12 other domains configured that work properly all using the same format, so I am pretty sure it’s not a file formatting issue. I just can’t figure out why the .us domain isn’t acting the same way as the .com and .net domains.













Bind 9 files normally look like this.
;
; Zone file for linux.bogus
;
; The full zone file
;
$TTL 3D
@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
199802151 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;
NS ns ; Inet Address of name server
MX 10 mail.linux.bogus ; Primary Mail Exchanger
MX 20 mail.friend.bogus. ; Secondary Mail Exchanger
;
localhost A 127.0.0.1
ns A 192.168.196.2
mail A 192.168.196.4
Here is a link to a simple setup.
http://www.langfeldt.net/DNS-HOWTO/BIND-9/DNS-HOWTO-5.html
and
http://www.debuntu.org/book/export/html/85
In the sample I posted the domain name would be linux.bogus
Your file doesn’t have an entry at all for a .us name anywhere
You aren’t the server for google so these are wrong
www IN CNAME @
googleffffffffffffffff IN CNAME google.com.
or use this example
http://www.debuntu.org/2006/08/05/85-how-to-setting-up-a-dns-zone-with-bind9
;
; Zone file for debuntu.foo
;
; The full zone file
;
$TTL 3D
@ IN SOA ns.debuntu.foo. chantra.debuntu.foo. (
200608081 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;
NS ns ; Inet Address of name server
MX 10 mail ; Primary Mail Exchanger
MX 20 mail2 ; Secondary Mail Exchanger
;
ns A 192.168.1.5
www CNAME http://www.debuntu.org.
ftp CNAME ns
gw A 192.168.1.1
TXT “Network gateway”
mail A 192.168.1.2
mail2 CNAME otherbox
otherbox A 192.168.1.3
TXT “Otherbox”
This file does the following
# the adress of the name server; 192.168.1.5,
# an alias from http://www.debuntu.foo to http://www.debuntu.org,
(mind the dot “.” at the end of an external name),
# another alias from http://ftp.debuntu.foo to ns.debuntu.foo,
# An address for the local network gateway with a description
(this isn’t needed unless you need a local gateway in the file)
But in either case the Domain name should have an A record for whatever the domain name is yourdomain.us
or a cname or some referrence to it.
Add : you can see good and bad results of your entries using
http://dnsstuff.com