some dnsmasq problems

From: Matteo Corti (corti_at_inf.ethz.ch)
Date: 11/29/04


Date: 29 Nov 2004 19:14:11 +0100

Hi,

I just installed dnsmasq at home and I have a strange problem.

My setup:

- a router/gateway machine with an external ip (let's call it
  my_ip) with an internal ip (192.168.1.1)
- several machines in the 192.168.1.0 network

On the gatway /etc/resolv.conf is generated by the DHCP client on the
external interface and the /etc/hosts contains the local machines:

[root@gateway root]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

192.168.1.1 gateway
192.168.1.10 patrick
192.168.1.20 matteo
192.168.1.30 andreas
192.168.1.254 ap

On the "internal machines" i simply have set up the DNS server to be
192.168.1.1

Everything seems to work but:

On a local machine:

> host myname.mydomain
returns my_ip wanderful!

> telnet myname.mydomain 80
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

And here telnet (but also mozilla, ssh, ...) resolves myname.mydomain
to localhost.

I am puzzled: are host and other linux programs using different
methods to resolv domain names (host seems to use libresolv but I
didn't really get what telnet is doing).

On the dns server everything seems ok:
[root@gateway root]# host myname.mydomain
casa.dyndns.info has address my_ip
[root@gateway root]# telnet myname.mydomain 80
Trying my_ip...
Connected to myname.mydomain.
Escape character is '^]'.

I'm pretty sure that problem is pretty simple but at the moment I am
clueless...

Many thanks for any hint.

Matteo

-- 
Matteo Corti
Computer Systems Institute
Swiss Federal Institute of Technology Zurich


Relevant Pages

  • DNS / TCP-IP related Problem on Solaris 8
    ... nslookup, telnet etc. to function correctly e.g. telnet gives "unknown ... host", even for machines on the same subnet, nslookup hangs etc. I've ...
    (SunManagers)
  • Re: Connecting to VNC server on Open SuSE 11.1
    ... I have two machines both running Open SuSE 11.0. ... First go on the server and to a `telnet localhost 5901` where 5901 would ... I did all the configuration with YaST, so no idea how to do this ...
    (alt.os.linux.suse)
  • Re: le0 strangeness
    ... :> i was able to ftp and telnet into the sparc10 from other machines. ... but in solaris 8 it was set to true and the message didn't show up. ...
    (comp.sys.sun.hardware)
  • Re: Need help with Lan Config
    ... > X apps on another computer on the network. ... > telnet or ssh into the machine I want to run the X programs from. ... My system is two linux machines connected to a Belkin cable router ...
    (comp.os.linux.networking)
  • Re: telnet failed while connecting to a windows 2000 system
    ... my initial reply was assuming you are using default windows telnet ... As for your client, unfortunately I can say nothing special. ... need to enable NTLM authentication, if your client supports it - I'm ... Both machines are connected in a LAN. ...
    (microsoft.public.win2000.security)