View previous topic :: View next topic |
Author |
Message |
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Tue Jul 14, 2015 8:06 pm Post subject: no dns with gentoo and openwrt router [solved - workaround] |
|
|
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 |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Tue Jul 14, 2015 9:42 pm Post subject: |
|
|
Ask yourself, "What was the last thing I changed?" |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Wed Jul 15, 2015 4:12 pm Post subject: |
|
|
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 |
|
|
baaann Guru
Joined: 23 Jan 2006 Posts: 558 Location: uk
|
Posted: Thu Jul 16, 2015 12:24 pm Post subject: |
|
|
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 |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3137
|
Posted: Thu Jul 16, 2015 5:57 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Jul 16, 2015 6:57 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Jul 16, 2015 6:58 pm Post subject: |
|
|
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 |
|
|
|