NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: DNS resolver resolves LAN IPs



Ok, I am correcting my question.

I have simple private LAN with several machines, no DNS service. Machines uses IP address to contact each other and DNS names for internet targets. Even DNS resolver is setup properly and it is able to translate public names to IPs, still it tries to do reverse query to internet DNS server when target IP is on LAN. Does exist any configuration file where I can put my LAN's IP/netmask and DNS resolver will not try reverse queries ?
Or can be DNS resolver configured by this way ?




On 2/19/25 15:01, Greg Troxel wrote:
Peter Skvarka <ps%softinengines.com@localhost> writes:

I have redirectred to netbsd-users as this is appropriate there rather
than tech-net.

Problem is that OS first tries to resolve LAN IP to DNS even when I
try to ping to IP target.

I suspect your problem is that DNS is misconfigured.   ping does that,
and it's not generally considered a bug.   Read the man page and note
the -n option.

Really you should debug and fix your DNS setup.

Understand if you intend to run your own named, or use something else.
Look at resolv.conf.
Run dig, as in `dig -x 192.168.1.1`.

On a working setup, you will get a NXDOMAIN for the RFC1918 addresses,
and that will be reasonably quick even the first time.

You are likely to need to read a fair bit about DNS and dig in order to
fix this.




Home | Main Index | Thread Index | Old Index