1834551 Members
3563 Online
110069 Solutions
New Discussion

Re: hosts_to_named -p

 
Wilfred Chau_1
Respected Contributor

hosts_to_named -p

Has anyone of you used hosts_to_named with the -d and -p options in the same file before?

I have something like

-d domain1
-p domain2
-s nameserver1
-s nameserver2
-n xxx.xxx.xxx

The -p option seems to remove most of the entries in db.domain1. Any thought? Thanks all.
2 REPLIES 2
Sundar_7
Honored Contributor

Re: hosts_to_named -p

-p domain

Create only pointer (PTR) data for hosts in
domain. This is useful when there are multiple domains on a network and a different server is responsible for domain, but this server is responsible for the addrss-to-name mapping. option can be used more than once on the command line. This option requires domain names in the host table.

Apparently, -p populates only db. which is used for reverse lookup.

You would like ur DNS server be used for both forward and reverse lookup ??

If yes then dont use -p option.
Learn What to do ,How to do and more importantly When to do ?
Wilfred Chau_1
Respected Contributor

Re: hosts_to_named -p

Thanks Sundar.

I took a closer look. -d and -p can coexist only if you use the -a option for the subnet to not create the pointer record.

If -n is used instead, all the forward records in that subnet will be ignored.

Can't believe it.