LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2011, 04:31 AM   #1
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
[dnsmasq] Can't ping Win7 machine by name from Linux


Hello, I am having some problem with this, I'll admit.

To simplify. this is the scenario: gentoo box (distro shouldn't be relevant here) and win7 box. Gentoo box is dhcp and dns server, via dnsmasq.

From win7, I can ping gentoo by both ip and name. No problem there.

From Gentoo, I can ping win7 by ip, but not by name. The dnsmasq log seems to receive the name ok, it's "Tere-PC". I have been looking around for many hours now and I know there must be something simple I am not taking into account.

Code:
dnsmasq-dhcp: 55480937 available DHCP range: 192.168.0.50 -- 192.168.0.150
dnsmasq-dhcp: 55480937 client provides name: Tere-PC
dnsmasq-dhcp: 55480937 vendor class: MSFT 5.0
dnsmasq-dhcp: 55480937 DHCPREQUEST(eth0) 192.168.0.2 00:14:85:18:59:d2 
dnsmasq-dhcp: 55480937 DHCPACK(eth0) 192.168.0.2 00:14:85:18:59:d2 Tere-PC
dnsmasq-dhcp: 55480937 requested options: 1:netmask, 15:domain-name, 3:router, 6:dns-server, 
dnsmasq-dhcp: 55480937 requested options: 44:netbios-ns, 46:netbios-nodetype, 47:netbios-scope, 
dnsmasq-dhcp: 55480937 requested options: 31:router-discovery, 33:static-route, 121:classless-static-route, 
dnsmasq-dhcp: 55480937 requested options: 249, 43:vendor-encap
dnsmasq-dhcp: 55480937 etiquetas: known, eth0
dnsmasq-dhcp: 55480937 next server: 192.168.0.1
dnsmasq-dhcp: 55480937 sent size:  1 option: 53:message-type  05
dnsmasq-dhcp: 55480937 sent size:  4 option: 54:server-identifier  192.168.0.1
dnsmasq-dhcp: 55480937 sent size:  4 option: 51:lease-time  00:00:a8:c0
dnsmasq-dhcp: 55480937 sent size:  4 option: 58:T1  00:00:4d:26
dnsmasq-dhcp: 55480937 sent size:  4 option: 59:T2  00:00:8c:6e
dnsmasq-dhcp: 55480937 sent size:  4 option:  1:netmask  255.255.255.0
dnsmasq-dhcp: 55480937 sent size:  4 option: 28:broadcast  192.168.0.255
dnsmasq-dhcp: 55480937 sent size:  4 option:  3:router  192.168.0.1
dnsmasq-dhcp: 55480937 sent size:  4 option:  6:dns-server  192.168.0.1
dnsmasq-dhcp: 55480937 sent size: 10 option: 81:FQDN  03:ff:ff:54:65:72:65:2d:50:43
Code:
# ping Tere-PC
ping: unknown host Tere-PC
Is there any way that dnsmasq, which is supposedly a dns server, will link this name to the given ip?

Thanks for reading and for any idea
 
Old 03-04-2011, 06:54 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

I guess you have to add
Code:
domain <domain name>
on top of /etc/resolv.conf, where <domain name> is your local domain name

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ping Windows machine from Linux mselaledi Linux - Networking 8 10-03-2010 03:09 PM
Formatting 74Gb drive for FC11 on Win7 machine?! andygravity Linux - Newbie 6 11-24-2009 04:22 AM
Can't Ping Linux CentOS 5.3 Machine to XP SP2 Windows Machine Moderns Linux - Networking 20 11-04-2009 12:33 AM
(Mepis) Windows machine cannot ping linux machine by IP mabtjie Linux - Networking 1 11-08-2008 09:54 AM
Can't ping linux machine from windows Drunkalot Linux - General 1 10-14-2005 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration