NetBSD-Users archive

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

Re: After enabling IPv6 curl github.com fails, succeeds with IPv4



On Wed, Jul 22, 2026 at 01:04:05AM +0530, Mayuresh wrote:
> On Wed, Jul 22, 2026 at 12:24:47AM +0530, Mayuresh wrote:
> > search . works, but is that a good fix? I'd prefer if I could control
> > things from rc.conf, as resolv.conf may get overwritten.
> 
> Noticed dns_search in `man rc.conf' for this purpose. But that's not
> helping put the setting in resolv.conf.

Iirc you mentioned earlier that your system uses DHCP client to get its
IP address and network configuration?

IME setting rc.conf(5) variables like dns_domain, dns_nameservers etc.
works OK with static IP configured systems, but doesn't work with DHCP
clients. Perhaps because DHCP client is already using resolvconf(8) to
setup /etc/resolv.conf, though I've admittedly not looked into it.

One indicator is an /etc/resolv.conf line like this:

# Generated by resolvconf

If you want to control (some) of your resolv.conf content on a DHCP
client system, you could look into configuring resolvconf, e.g. from
resolvconf.conf(5) there are settings like:

     local_nameservers
     search_domains
     search_domains_append
     name_servers
     name_servers_append

and so on. More details in the man page.

sr.


Home | Main Index | Thread Index | Old Index