Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Serving static AAAA records with IOS' DNS server

Hi guys,

Has anyone managed to get IOS to serve statically defined AAAA records? I do this just fine with A records as such :

On the router :

ip dns server

ip host ns.example.com 1.1.1.1

ip host somehost.example.com 1.1.1.2

ip dns primary example.org soa ns.example.org someone@example.com 21600 900 7776000 86400

From the Linux box :

unixhost$ dig @1.1.1.1 somehost.example.com

; <<>> DiG 9.8.1-P1 <<>> @1.1.1.1 somehost.example.com

; (1 server found)

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32168

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:

;somehost.example.com.        IN    A

;; ANSWER SECTION:

somehost.example.com.    10    IN    A   1.1.1.2

;; Query time: 1 msec

;; SERVER: 1.1.1.1#53(1.1.1.1)

;; WHEN: Wed Aug 15 00:42:11 2012

;; MSG SIZE  rcvd: 50

Interestingly whenever I add a static ipv6 entry, I get the SOA as  an answer instead of the actual AAAA record. But from the router itself,  it can use the statically defined hosts just fine.

On the router :

ipv6 host somehost.example.com 2001:1:1:1::2

From the Linux box :

unixhost$ dig -t AAAA @1.1.1.1 somehost.example.com

; <<>> DiG 9.8.1-P1 <<>> -t AAAA @1.1.1.1 somehost.example.com

; (1 server found)

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53347

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:

;somehost.example.com.        IN    AAAA

;; AUTHORITY SECTION:

somehost.example.com.        86400    IN    SOA  ns.example.com. someone@example.com. 3553994542 21600 900 7776000 86400

;; Query time: 1 msec

;; SERVER: 192.168.200.252#53(192.168.200.252)

;; WHEN: Wed Aug 15 00:42:22 2012

;; MSG SIZE  rcvd: 108

But from the router, it works just fine :

router#ping ipv6 somehost.example.com

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2001:1:1:1::2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 0/1/4 ms

I'm running 15.2(2)T1.

Thanks,

Eric Lauriault

Everyone's tags (2)
962
Views
0
Helpful
0
Replies
CreatePlease login to create content