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