reverse dns, like dhcp, on local net
Shadow Hawkins on Thursday, 26 August 2010 11:25:55
When my pc's in my home network get an ipv4-adress from dhcpd, the dns and reverse dns is updated; dhcpd sets via dynamic dns-updates:
leif-pc.neland.local IN A 192.168.5.123
123.5.168.192.in-addr.arpa ptr leif-pc.neland.local
But now, when I connect via ssh to home server with ipv6, there is a delay while ssh tries to look up the reverse.
Can the "random" ip-adress a pc gets, be relayed to the local nameserver too?
Leif
reverse dns, like dhcp, on local net
Jeroen Massar on Thursday, 26 August 2010 12:09:22
There are effectively four ways to have an IPv6 address:
- static configuration
- RA (Router Advertisement)
- DHCP
- RA + RFC3041
The RA one is the default one that one uses and it generally is based upon the advertised /64 prefix and the MAC address (a EUI-48 address) which is converted into an EUI-64 address which together are your IPv6 address.
If they are 'random' they generally are of the RFC3041 type.
Thus to solve your problem, you also have several ways:
- static & RA: just put them in a reverse file
- DHCP: same way as with IPv4, let the server do it
- RA + RFC3041: forget it they change a lot
Of course you can do DDNS (Dynamic DNS) updates, see for instance Secure dynamic DNS howto on how to do that.
As for the delay, if the reverse zone is properly delegated and working then the DNS server should directly answer with a "NOERROR, that is, that there is no reverse PTR record, and thus there should not be a delay.
Posting is only allowed when you are logged in. |