I want to setup an DNS record which contains only digits, for example:
www1 A 220.127.116.11 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?
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 18.104.22.168 ...
However, when I use the Google DNS server (22.214.171.124), 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: 126.96.36.199#53(188.8.131.52) ;; 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,
; <<>> 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 184.108.40.206 a1574.b.akamai.net. 18 IN A 220.127.116.11 ;; Query time: 328 msec ;; SERVER: 18.104.22.168#53(22.214.171.124) ;; 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 @126.96.36.199 1.example.com, (neither 188.8.131.52), Now I stuck.