Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No DNS in auto-generated /etc/resolve.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 470

PostPosted: Fri Aug 25, 2017 3:22 pm    Post subject: No DNS in auto-generated /etc/resolve.conf Reply with quote

I have a Dell Latitude E5550 that I'm trying to connect by wifi and has some delays when working on the web. I think it's because of DNS.
I have this in my /etc/conf.d/net ...
Code:

modules="wpa_supplicant dhcpcd"
wpa_supplicant_wlp2s0="-Dnl80211"
wpa_timeout_wlp2s0="0"
config_wlp2s0="dhcp"
dns_search_wlp2s0="hsd1.tx.comcast.net"
dns_servers_wlp2s0="209.222.18.222 209.222.18.218"

And then I run ...
Code:

$ /etc/init.d/dhcpcd start
$ /etc/init.d/net.wlp2s0 start


But it takes forever to get pages to load in the browser. And I look at /etc/resolv.conf and it has ...
Code:

# Generated by dhcpcd from wlp2s0.dhcp, wlp2s0.dhcp6, wlp2s0.ra
# /etc/resolv.conf.head can replace this line
domain lan
nameserver 192.168.20.1
nameserver fd8d:968a:575c::1
# /etc/resolv.conf.tail can replace this line

My DNS servers listed in the /etc/conf.d/net file are not there. This used to work for me, but since a previous update, can't understand why the conf.d/net dns servers are not in place.

Thoughts?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Fri Aug 25, 2017 3:30 pm    Post subject: Reply with quote

It's probably grabbing them from DHCP.

This thread has some good ideas: https://forums.gentoo.org/viewtopic-p-6990730.html
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 470

PostPosted: Fri Aug 25, 2017 3:48 pm    Post subject: Reply with quote

Big thnx!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Fri Aug 25, 2017 6:55 pm    Post subject: Reply with quote

Or install a common middleman for resolv.conf, such as net-misc/openresolv :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
shrike
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2004
Posts: 136
Location: Closer to home

PostPosted: Sat Aug 26, 2017 12:23 pm    Post subject: Reply with quote

Looks like a category change happened somewhere. eix net-dns/openresolv works.

Should I ever get around to using openvpn I now see that openresolv will solve a problem I did not know I had. Thanks Roy!

shrike
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum