I want to setup an DNS record which contains only digits, for example:
www1 A 1.2.3.4
1 CNAME www1
However, the pure number seems not work.
I know some sites which use integer in their host names, something like 400.5432.somefax.com, so I guess maybe I should escape the numbers?
EDIT
It seems BIND do support labels of pure numbers:
$ dig @localhost 1.example.com
...
1.example.com. 43200 IN CNAME www1.example.com.
www1.example.com. 43200 IN A 1.2.3.4
...
However, when I use the Google DNS server (8.8.8.8), it's failed.
; <<>> DiG 9.7.3 <<>> 1.example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 20866
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;1.example.com. IN A
;; AUTHORITY SECTION:
example.com. 1205 IN SOA root.example.com. admin.example.com. 5 3600 600 43200 3600
;; Query time: 112 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue May 3 19:09:39 2011
;; MSG SIZE rcvd: 94
However, Google DNS server should be no problem with number labels, because it can resolve, for example, 83592583.qzone.qq.com
:
; <<>> DiG 9.7.3 <<>> 83592583.qzone.qq.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18687
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;83592583.qzone.qq.com. IN A
;; ANSWER SECTION:
83592583.qzone.qq.com. 600 IN CNAME qq.com.edgesuite.net.
qq.com.edgesuite.net. 9439 IN CNAME a1574.b.akamai.net.
a1574.b.akamai.net. 18 IN A 60.254.175.65
a1574.b.akamai.net. 18 IN A 60.254.175.64
;; Query time: 328 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue May 3 19:12:10 2011
;; MSG SIZE rcvd: 134
So, BIND9 is okay, Google DNS is okay, my zone config is okay, I can dig @localhost 1.example.com
which gives the correct answer. But I can't dig @8.8.8.8 1.example.com
, (neither 8.8.4.4), Now I stuck.
1
, use1.somedomain.com.
?dig +trace 1.example.com
? Then check each DNS server that's listed by the TLD servers as being authoritative. Your goal is to find the address associated with 1.example.com the same way Google's DNS server does. All else being equal, it's most likely a problem with your server(s), not Google's.