Discussion:
[Dnsmasq-discuss] addn-hosts vs host-record
Donald Muller
2018-03-07 22:49:37 UTC
Permalink
Hi,

What is the difference between addn-hosts and host-record? Are the same records created for both?

Thanks
Don
Donald Muller
2018-03-08 20:01:12 UTC
Permalink
-----Original Message-----
Sent: Thursday, March 8, 2018 11:06 AM
Subject: Re: [Dnsmasq-discuss] addn-hosts vs host-record
Post by Donald Muller
What is the difference between addn-hosts and host-record? Are the
same records created for both?
Not necessarily. A name/address pair in a hosts file creates a A/AAAA record
and a PTR record to do address->name mapping. Depending on the setting of
--expand-hosts, it may do the same for a name composed of a simple name
and the contents of the dnsmasdq --domain setting.
host-record just creates a simple A or AAAA record.
Cheers,
Simon.
HI Simon,

According to the man pages a host-record also creates a PTR record.

From the man page - Add A, AAAA and PTR records to the DNS.

Thanks
Don
Simon Kelley
2018-03-08 20:13:33 UTC
Permalink
Post by Donald Muller
-----Original Message-----
Sent: Thursday, March 8, 2018 11:06 AM
Subject: Re: [Dnsmasq-discuss] addn-hosts vs host-record
Post by Donald Muller
What is the difference between addn-hosts and host-record? Are the
same records created for both?
Not necessarily. A name/address pair in a hosts file creates a A/AAAA record
and a PTR record to do address->name mapping. Depending on the setting of
--expand-hosts, it may do the same for a name composed of a simple name
and the contents of the dnsmasdq --domain setting.
host-record just creates a simple A or AAAA record.
Cheers,
Simon.
HI Simon,
According to the man pages a host-record also creates a PTR record.
From the man page - Add A, AAAA and PTR records to the DNS.
Ah, indeed. Apologies for winging it. The man page tells the truth, and
also mentions the expand-hosts issue. That's the answer you're looking for.

Cheers,

Simon.

Loading...