rlex / puppet-dnsmasq

Advanced Dnsmasq management module for puppet CFM
http://forge.puppetlabs.com/lex/dnsmasq
13 stars 47 forks source link

Add host-record management #21

Closed slamont closed 10 years ago

slamont commented 10 years ago

I've discovered that it is easier to manage DNS records using host-record so I added it.

Like the man explains: --host-record=[,....][],[] Add A, AAAA and PTR records to the DNS. This adds one or more names to the DNS with associated IPv4 (A) and IPv6 (AAAA) records. A name may appear in more than one host-record and therefore be assigned more than one address. Only the first address creates a PTR record linking the address to the name. This is the same rule as is used reading hosts-files. host-record options are considered to be read before host-files, so a name appearing there inhibits PTR-record creation if it appears in hosts-file also. Unlike hosts-files, names are not expanded, even when expand-hosts is in effect. Short and long names may appear in the same host-record, eg. --host-record=laptop,laptop.thekelleys.org,192.168.0.1,1234::100

slamont commented 10 years ago

Why was travis configuration removed in 96a28851870b00eeab1bad5718d83f289a58fca4 if it was correctly building ? Travis build haven't work since.

slamont commented 10 years ago

Now travis is working

rlex commented 10 years ago

I removed it because it was not a full-featured test.

rlex commented 10 years ago

Sorry for delay and thanks for your contribution!