Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no dns with gentoo and openwrt router [solved - workaround]
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
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Tue Jul 14, 2015 8:06 pm    Post subject: no dns with gentoo and openwrt router [solved - workaround] Reply with quote

Greetings,

I've got a new router and installed openwrt on it, since then I'm getting a weird behavior on my gentoo, after boot, I have no DNS, this causes ping www.ask.com to fail.
but if I restart the bridge, it works ok.

any ideas what might be the issue?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein


Last edited by DaggyStyle on Thu Jul 16, 2015 6:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue Jul 14, 2015 9:42 pm    Post subject: Reply with quote

Ask yourself, "What was the last thing I changed?"
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Wed Jul 15, 2015 4:12 pm    Post subject: Reply with quote

Tony0945 wrote:
Ask yourself, "What was the last thing I changed?"


seriously? check my previous post.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Thu Jul 16, 2015 12:24 pm    Post subject: Reply with quote

I haven't got a new router but I did have the same issue earlier in the week.

When I checked /etc/resolv.conf it was empty, as far as I could ascertain a file could not be found when writing it during boot. I didn't have a lot of time and had long been intending to try DHCPCD. It worked a treat and has been fine since. So I suggest you check your resolv.conf when your DNS is missing(temporary fix add router address to it)
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3137

PostPosted: Thu Jul 16, 2015 5:57 pm    Post subject: Reply with quote

A shot in the dark, dhcpd starts before your LAN has it's IP assigned.
This way dhcpd doesn't know it's supposed to listen there and ignores incoming requests, so your clients either don't have IP set at all or configure it with other mechanisms, that can't provide gateway or dns IPs
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Jul 16, 2015 6:57 pm    Post subject: Reply with quote

szatox wrote:
A shot in the dark, dhcpd starts before your LAN has it's IP assigned.
This way dhcpd doesn't know it's supposed to listen there and ignores incoming requests, so your clients either don't have IP set at all or configure it with other mechanisms, that can't provide gateway or dns IPs


how is that even possible?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Jul 16, 2015 6:58 pm    Post subject: Reply with quote

baaann wrote:
I haven't got a new router but I did have the same issue earlier in the week.

When I checked /etc/resolv.conf it was empty, as far as I could ascertain a file could not be found when writing it during boot. I didn't have a lot of time and had long been intending to try DHCPCD. It worked a treat and has been fine since. So I suggest you check your resolv.conf when your DNS is missing(temporary fix add router address to it)


that is correct, /etc/resolv.conf was empty.

so I've worked around it for now by disabling dns and defining it hardcoded.

that solves the issue for now.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
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