[Samba] Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
Harry Jede
walk2sun at arcor.de
Wed Feb 20 14:18:01 UTC 2019
Am 20.02.19 um 14:52 schrieb Mgr. Peter Tuharsky via samba:
> Hm,
>
> I thought this to be the very TLD that is specifically assigned for
> local networks with no plans to become Internet-wide. What is the
> recommended TLD for such networks then?
Their are several solutions. I like it to define my own "top level
domains" on my last DNS Server, i.e. Gateway.
root at capella:~# dig +noall +answer +authority +additional any lan.
lan. 6743 IN NS debby-3.kronprinz.xx.
lan. 6743 IN SOA debby-3.kronprinz.xx.
root.kronprinz.xx. 505061645 10800 3600 604800 86400
lan. 6743 IN NS debby-3.kronprinz.xx.
debby-3.kronprinz.xx. 6673 IN A 192.168.231.254
root at capella:~# dig +noall +answer +authority +additional any xx.
xx. 6626 IN NS debby-3.kronprinz.xx.
xx. 6626 IN SOA debby-3.kronprinz.xx.
root.kronprinz.xx. 505061645 10800 3600 604800 86400
xx. 6626 IN NS debby-3.kronprinz.xx.
debby-3.kronprinz.xx. 6657 IN A 192.168.231.254
root at capella:~# dig +noall +answer +authority +additional any kronprinz.xx.
kronprinz.xx. 6638 IN SOA debby-3.kronprinz.xx.
root.kronprinz.xx. 505061645 10800 3600 604800 86400
kronprinz.xx. 6638 IN NS debby-3.kronprinz.xx.
kronprinz.xx. 6638 IN NS debby-3.kronprinz.xx.
debby-3.kronprinz.xx. 6638 IN A 192.168.231.254
root at capella:~# hostname -f
capella.europa.xx
root at capella:~# dig +noall +answer +authority +additional axfr xx.
; Transfer failed.
It should fail, because capella it NOT authoritive for "xx.", but for
"europa.xx."
root at capella:~# dig +noall +answer +authority +additional axfr europa.xx.
europa.xx. 7200 IN SOA capella.europa.xx.
root.europa.xx. 2012010440 10800 3600 604800 86400
europa.xx. 7200 IN NS capella.europa.xx.
europa.xx. 7200 IN MX 10 capella.europa.xx.
*.europa.xx. 7200 IN MX 10 capella.europa.xx.
ainf-01.europa.xx. 7200 IN A 10.100.0.101
...
All machines in my network MUST ask 192.168.231.254 for DNS resolution.
When ever "lan." is occupied by someone on the internet, I dont care.
By the way "xx." will never used, "xy." may be used in near future. It
works for me since 1990, round about 30 years.
--
Harry Jede
More information about the samba
mailing list