On 04/05/2021 06:13, Ed Greshko wrote:
>
> *5. dns config file*
> ;
> $TTL 3D ; default ttl for records without a specified lifetime
> $ORIGIN linuxlighthouse.com <
http://linuxlighthouse.com>.
>
linuxlighthouse.com
<
http://linuxlighthouse.com>. CAA 0 issue "letsencrypt.org
<
http://letsencrypt.org>"
> @ IN SOA ws.linuxlighthouse.com
<
http://ws.linuxlighthouse.com>. root.linuxlighthouse.com
<
http://root.linuxlighthouse.com>. (
> 2021050301 ; serial number
> 16384 ; ns refresh
> 2048 ; ns retry
> 1048576 ; authority expiry
> 2560 ); min (RFC2308 §4)
> IN NS ws.linuxlighthouse.com <
http://ws.linuxlighthouse.com>.
> IN NS ns3.attdns.com <
http://ns3.attdns.com>.
> ; IN MX linuxlighthouse.com <
http://linuxlighthouse.com>.
> ws IN A 108.220.213.121
> www IN A 108.220.213.121
> IN A 108.220.213.121
[egreshko(a)meimei ~]$ host linuxlighthouse.com
[egreshko@meimei ~]$
returns nothing. So, entering
http://linuxlighthouse.com will fail.
BTW, the reason the above fails is due to the incorrect format of the zone file.
the last line contains "white-space IN A 108.220.213.121" which means
that
info applies to the previous line.
As an example, my zone file contains.
acer A 211.75.128.211
AAAA 2001:470:67:cce::5
A 192.168.2.116
So.....
[root@f33k named]# host
acer.greshko.com localhost
Using domain server:
Name: localhost
Address: ::1#53
Aliases:
acer.greshko.com has address 211.75.128.211
acer.greshko.com has address 192.168.2.116
acer.greshko.com has IPv6 address 2001:470:67:cce::5
--
Remind me to ignore comments which aren't germane to the thread.