View previous topic :: View next topic |
Author |
Message |
Doorsdown n00b
Joined: 21 Mar 2005 Posts: 65 Location: Boston, MA
|
Posted: Mon Mar 21, 2005 6:49 am Post subject: unknown host problem |
|
|
ok i have looked up all the help on this soo far and have not found a solution yet that could solve my problem. my gentoo box can get to the internet via IP's but not though DNS. It is behind a nat router. Also this trouble started when i was setting up samba using this guide
Code: |
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
|
Code: |
eth0 Link encap:Ethernet HWaddr 00:50:BF:9B:02:97
inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:bfff:fe9b:297/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3017 errors:0 dropped:0 overruns:0 frame:0
TX packets:3444 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:345980 (337.8 Kb) TX bytes:449574 (439.0 Kb)
Interrupt:5 Base address:0xec00
|
Code: |
cat /etc/resolv.conf
nameserver 68.9.16.30
nameserver 68.10.16.30
search ri.cox.net
|
|
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 21, 2005 10:11 am Post subject: |
|
|
What does the NAT router do, exactly ?
Does it allow DNS queries in both directions ?
Since DNS is mostly UDP, it won't easily cross a one-way NAT connection - you'd best forward DNS from the NAT router itself.
Or else add the standard ESTABLISHED,RELATED line to the NAT rules.
If that is at all possible.
Oh and drop the search line from resolv.conf until you have verified that it works...
What exactly happens when you type
? _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
Doorsdown n00b
Joined: 21 Mar 2005 Posts: 65 Location: Boston, MA
|
Posted: Mon Mar 21, 2005 6:34 pm Post subject: |
|
|
adaptr wrote: | What does the NAT router do, exactly ?
translates the internal to the external...thats about it |
adaptr wrote: |
Does it allow DNS queries in both directions ?
Since DNS is mostly UDP, it won't easily cross a one-way NAT connection - you'd best forward DNS from the NAT router itself.
Or else add the standard ESTABLISHED,RELATED line to the NAT rules.
If that is at all possible.
|
it was working before the samba install
adaptr wrote: |
Oh and drop the search line from resolv.conf until you have verified that it works...
What exactly happens when you type
? |
okies i droped the search
_________________ AMD64 Phenom 9500 x4
Mark Threads [Solved] when they are solved |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 21, 2005 7:09 pm Post subject: |
|
|
Yes, I know what a NAT router does
Can you use dig ?
You need bind-tools for the nameserver tools. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
Doorsdown n00b
Joined: 21 Mar 2005 Posts: 65 Location: Boston, MA
|
Posted: Mon Mar 21, 2005 8:10 pm Post subject: |
|
|
adaptr wrote: | Yes, I know what a NAT router does
Can you use dig ?
You need bind-tools for the nameserver tools. |
huh ? _________________ AMD64 Phenom 9500 x4
Mark Threads [Solved] when they are solved |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 21, 2005 8:32 pm Post subject: |
|
|
You write that you cannot resolve hostnames.
This is not a samba-generated problem - it can't be.
It is in your network config somewhere, or in the network itself.
Dig (Domain Information Groper) can help you with name resolution problems.
All other tools (route, netstat, ping, traceroute) are already available. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
Doorsdown n00b
Joined: 21 Mar 2005 Posts: 65 Location: Boston, MA
|
Posted: Mon Mar 21, 2005 8:42 pm Post subject: |
|
|
i was thinking that it may be samba related as u have to modify permissions when u set up some of the other file with samba
ie
Code: |
<Location /admin>
AuthType Basic
AuthClass System
Allow From 192.168.1.*
Order Deny,Allow
Deny From All
</Location>
|
_________________ AMD64 Phenom 9500 x4
Mark Threads [Solved] when they are solved |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 21, 2005 10:02 pm Post subject: |
|
|
And.. er.. what does this have to do with network name resolution ?
Or with Samba, for that matter - that is an apache config snippet. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
Doorsdown n00b
Joined: 21 Mar 2005 Posts: 65 Location: Boston, MA
|
Posted: Mon Mar 21, 2005 10:06 pm Post subject: |
|
|
no its not...thats a cups config tbh that i had to set up with samba _________________ AMD64 Phenom 9500 x4
Mark Threads [Solved] when they are solved |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 21, 2005 10:55 pm Post subject: |
|
|
...which has nothing whatsoever to do with samba, and even less with the ability to resolve names on the network.
Where is this going ?
You keep saying Samba, I said no it has nothing to do with Samba; if you doubt that, fine.
You cannot resolve names on the network; I would concentrate on that instead of insisting that Samba must somehow be to blame. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
|