Server :: DNSMASQ - How To Automatically Add Hostnames

Jan 1, 2011

I am using DNSMASQ on a Debian 5.0.6. server. I configured DNSMASQ as DHCP server, and want it to answer local DNS requests. However, I am unable to use hostnames, and am forced to use IP addresses when pinging, opening a ssh shell on a remote server, opening a remote desktop to a windows system etcedtera.

Because I use DHCP, I can not hard code the ip addresses in the hosts file. How do I configure DNSMASQ so that i can use hostnames for computers who get their IP addresses from DHCP.

View 11 Replies


ADVERTISEMENT

Ubuntu Networking :: Resolving/finding Hostnames Automatically?

Mar 16, 2010

I have a ubuntu server running which acts as a firewall/dhcp router for sharing internet to all computers on the network. On the network i have my stationary computer (win7) and my laptop (macbook).The server has 3 nics installed.ETH2 for internet. ETH1 (192.168.1.2) for windows pc. ETH0 for macbook (192.168.2.2).I can share files no problems over the network. Between windows <-> server, macbook <-> server, windows <-> macbook.The problem i'm experiencing is that i can't seem to find either hostnames between windows and macbook. They connect to each other fine with the right ip addresses, but they can't seem to connect when using computer names.

On both the macbook and windows pc i can see the server and connect to it without using the ip adress.What can i do to make them see each other with their computer names? Is there anything i can install on the server and configure in order for it to work automatically?In osx you have a tab in the finder that says "shared" which shows the computers on the network and only my server pops up.The same in windows, i can only see the server but not the macbook.As said, it works perfectly fine if i use \192.168.2.2 (or smb://192.168.1.2 on the macbook) but i'd rather be able to connect via the computer names.Would also love if they could resolve automatically so when a friend connects to the network i'll see his computer name right from the start, without any re-configuration.

View 9 Replies View Related

Debian :: Running Dnsmasq In Lenny - Wvdial Connecting But Dnsmasq Doesn't Work

Dec 30, 2010

I am running dnsmasq in debian lenny, wvdial connecting but dnsmasq doesn't work, the /var/run/dnsmasq/resolv.conf file is empty this is /var/log/syslog:

The /etc/resolv.conf and /etc/resolvconf/run/resolv.conf is ok:

This is my /etc/dnsmasq.conf:

[url]

View 3 Replies View Related

Ubuntu :: Dnsmasq Will Not Apply Changes In /etc/dnsmasq.conf?

Dec 27, 2010

ubuntu: 10.04dnsmasq: 2.52-1ubuntu0.1I've installed dnsmasq and it is performing DNS duties correctly. I'd like to limit access to the dnsmasq service to a specific address or interface. I've tried adding variations and combinations of the following to /etc/dnsmasq.conf:

Code:
interface=eth0
and

[code]....

View 1 Replies View Related

Server :: DNS Not Working With Short Hostnames

Jul 20, 2010

I have changed some settings on my DNS / DHCP config under Debian Lenny, and now when i try to ping some box it only works with long names.

For example:

Ping borsti doesnt work (can not find host) but if i use ping borsti.borsti.iss it works. I have no idea why it doesnt work because i only modified the dnssec-key (created a new key) and nothing else in te config Here is the config i used for bind: (taken from named.conf.options and named.conf.local)

And here is my dhcpd.conf:

View 4 Replies View Related

Server :: Apache Logging Client Hostnames Instead Of IPs ?

Mar 12, 2011

Setup a new machine with Apache, identical setup to all the other machines I got, yet this one is logging hostnames instead of IPs.

"HostnameLookups" are "Off" and LogFormat settings are identical to all the other machines:


Code:

Added a new LogFormat directive:


Code:

And told the virtual hosts to use it:


Code:

This solved the problem, though I'm at a loss as to why I've got this behavior on just this one box and none of the others. OS is Debian Lenny, same version of Apache installed via Debian package.

My understanding from Apache doc [url] is that when "HostnameLookups" are "Off, "%h" will yield IP instead of hostname..

Code:

It features support for HTTPS, virtual hosting, CGI, SSI, IPv6, easy scripting and database integration, request/response filtering, many flexible authentication schemes, and more. Homepage: [url]

View 4 Replies View Related

Server :: BIND Not Returning Windows DNS Hostnames

Jan 5, 2010

I have a situation where I have two DNS servers - a BIND one for our Unix hosts and a Windows Server DNS one for the Exchange and other Windows hosts. I set up the BIND server to slave from the Windows one, which it seems to do just fine.

Windows DNS has entries like "_gc._tcp.domain.local" in it, which are needed for domain logins, etc.

However, when I try to use nslookup on those entries, it fails when querying the BIND server. When I do a domain transfer with dig, I get all the answers I expect.

This failure means that the Windows boxes can't query the BIND server for the answers they need. By default, from DHCP, it is the BIND server they get, so that's a big problem. If I manually switch their DNS to the Windows server, it works perfectly.

View 1 Replies View Related

Networking :: Configure To Resolve For Hostnames When An IP Address Is Provided To DNS Server

May 21, 2010

How do we configure to resolve for hostnames when an IP address is provided to the DNS server.

Things I tried

The DNS daemon was started by the resolution failed. Find the logs below

** server can't find 11.127.168.192.in-addr.arpa: NXDOMAIN

View 4 Replies View Related

General :: DCHP Server Or Dnsmasq?

Jul 15, 2010

GUys im trying to setup a linux router w/in our network here in school, and i was using a fc13 as my linux router, i already setup iptables for linux masquerading.. i have a 20 winxp client connected to the said router with an ip of 192.168.0.1, on each client i manually configured all of the clients ip address.. i was wondering if i could use a dhcp server to ease the manual configuration.., i already installed a dhcp server. Note im a newbie, thus dhcp server will also provide dns resolution to winxp clients??,, on some thread that i read if the client is linux.. you will just need to add nameserver to the /etc/resolv.conf for each linux clients.. the clients that im using here is winxp, i was wondering if i could setup the server to distribute dns & also a dynamic ip to all the clients..w/c 1 is better?? DCHP server or dnsmasq??

View 1 Replies View Related

Server :: Setup A Net With A Dhcp + Dns Server Using Dnsmasq

May 18, 2010

I've set up a very simple net with a dhcp + dns server using dnsmasq. It works but the server itself cant resolv clients names. Clients do resolv without any problem my /etc/dnsmasq.conf

[Code]...

View 2 Replies View Related

Server :: View The Dhcp Clients Over Dnsmasq?

Jul 23, 2010

Is there anyway how to view the dhcp clients over dnsmasq?

View 1 Replies View Related

Server :: Dnsmasq.lease File + Description Of Its Contents?

May 4, 2011

iam running dnsmasq on my target board , my dnsmasq.conf has following configurations

# cat /var/etc/dnsmasq.conf
strict-order
localise-queries

[code]....

View 1 Replies View Related

CentOS 5 Networking :: Dnsmasq Dhcp - DNS Server Does Not Respond

Jan 9, 2011

I got a CentOS server setup as a dhcp server using dnsmasq. I followed this guide more or less: [URL] So, the problem seems to be concerning the DNS server on the clients. In windows I get the "limited connectivity" icon for the network, and when I select troubleshoot it says the DNS server does not respond. Issuing 'ipconfig /all' clearly shows the IP of the CentOS machine as the DNS server, which should be correct, yes?

ETH0 is working as WAN connection and that works great.. no problem with the WAN connection at all on the CentOS machine. ETH1 has the IP 192.168.0.1 and mask 255.255.255.0 When starting eth1, it sometimes says that it can't start eth1 because the IP 192.168.0.1 is already in use.. but that is most certainly not the case. Maybe there's some kind of issue here that messes with the DNS? What's mind boggling is that it works great on a linux machine (dhcp client) and on a windows xp machine. but it does not work on the windows 7 laptop and a vista laptop and a pda device.

View 1 Replies View Related

CentOS 5 Server :: Dnsmasq Starts But Doesn't Reply To Queries

Sep 5, 2010

trying to configure a Centos 5.5 server (simple file server with DHCP and DNS relay). I configured and tested the config (by 'service dnsmasq configtest') of dnsmasq and I got the message 'dnsdomain:host unknown (translation of the real message : hte inconnu) and I didn't find where I could define this host ! The hostname of the server is well defined and I can see it from all Windows PC's on the LAN. dnsmasq starts (with hte same message as in configtest) but when querying DNS from PC's te.g. trying to surf the Internet), I don't get replies (3 DNS servers are also well defined and operational).

View 2 Replies View Related

Fedora :: Hostnames - Upper Or Lowercase ?

Aug 26, 2011

What is the general feeling for the case of hostnames in Linux/UNIX, is it preferable to have them in lower-case or upper-case? I have always preferred them as lower-case but I am interested to see if there are any arguments for or against this practice.

View 1 Replies View Related

Ubuntu Networking :: Cannot Ping Any Hostnames On Our LAN

Jul 22, 2010

I cannot ping any hostnames on our LAN /etc/resolv.conf has both name servers configured correctly. I can ping the IP, but can't ping the hostname. I know it's something really simple, just can't put my finger on it.

View 9 Replies View Related

General :: Can't Resolve Hostnames On Ubuntu 11 / No DNS?

Jun 24, 2011

I recently assembled a new computer with both Windows 7 boot and Ubuntu 11.04 boot.For some reason, I can not resolve domain names at all on in Ubuntu while Windows 7 works just fine. I'm wondering if I have improperly configured my network settings. I am trying to configure this machine to have a static IP on my network of 192.168.1.3..The machine definitely has its network card installed properly and in Ubuntu I can access numeric ip addresses anywhere via browser or ssh.When I type in "google.com" in a browser I get an instant 'server not found' error page.

Anything that is described in my hosts file seems to work just fine. I can ping my router which has a LAN IP of 192.168.1.1 just fine with no packet loss.Also, I am unable to access this machine via ssh from any other machine on the network.

View 14 Replies View Related

OpenSUSE Network :: Resolve Local Hostnames Without DNS ?

Jul 14, 2010

How do you get linux to resolve local hostnames without DNS?

I've recently migrated from a fully windows home network, to a few linux machines and im unable to ping any local machines with hostname via these linux machines. i can ping IP and internet hostnames. also, windows > anything pings ok too. however linux > anything will not ping via hostname.

I beleive it's an additional service running on windows to resolve hostnames without DNS (wins/netbios).

DNS is done via a netgear DG834 router (DNS forwarding).

I know i could either use direct IP, or add machines into the hosts file, but im wondering if theres some way around that and to have it dynamically update like it does on the windows machines. static mappings seem a bit silly inside DHCP zones

I've seen some reports of avahi causing local network issues (taking over the .local domain), but i think this only extends to having to manually enter in .local after the hostname and even after removing avahi, the problem is still present.

View 9 Replies View Related

Ubuntu Networking :: Can Hostnames Be Setup Without Modifying

Jun 24, 2010

Every time I do a fresh install, there are a number of manual config things to change. One of them is to modify /etc/hosts to add the local IP addresses to a computer name.Can this be done via the Ubuntu networking somehow ? It would be nice not to have to change some of these config files.

View 4 Replies View Related

Ubuntu Networking :: Cannot Ping Local Hostnames

Nov 3, 2010

I have recently installed Ubuntu 10.10 and using it on a Windows Network.

I cannot ping any localhosts on the network using computer name but can ping using the IP Address.

I can ping the hosts via hostname from a windows machine fine, just not from Ubuntu

I can ping external websites using hostname like [URL]

My resolve.conf file is as follows.

# Generated by NetworkManager
nameserver 192.168.95.253
nameserver 192.168.95.234

View 1 Replies View Related

Debian Configuration :: How To Connect To Hostnames Over LAN That Router Assigns

Sep 29, 2015

So I have a router that I've gotten from my ISP, which seems to run a hardened, custom version of OpenWRT. By that I mean it's read-only and has a lot of files mostly in RAM. So putting custom firmware on it is not an option for me right now, as it's by only router. Actually, it's not just a router, it's an Actiontek modem/router combo.

So anyway, lets say I have a machine on my LAN and I want to basically SSH into a box by hostname. Now the thing is, I prefer using OpenDNS (previously OpenNIC) as my DNS, and so I don't use my router as my nameserver, though I could do that.

So how do I connect to my machine by hostname? I would prefer a solution that does not use Avahi/Zeroconf or editing the hosts file. People have said setting up a local DNS server might be okay, but I'd have to do that for every machine I'd want added to my network. Kind of almost as bad as editing a static hosts file. I use really want to use DHCP over static IP assigning, and the one on my router is not as advanced, so I can't use my hosts file. And also,

So is Zeroconf the only solution? I'm not sure how to set up Zeroconf. Do you just install Avahi?

I want a simple, almost Arch-linux solution, lean and clean, using only the most minimal software. I don't care how much configuring I'd have to do, as long as it's going to stay reliable as well.

View 2 Replies View Related

Ubuntu Networking :: Possible To Use Avahi To Resolve Hostnames Across Gateway

Nov 26, 2010

I am wondering if it is possible to use avahi to resolve hostnames across a gateway. With gateway I mean a linux box with ip_forward'ing enabled to pass traffic between interfaces. The gateway connects two networks with all hosts running Ubuntu and specifically avahi-daemon. The gateway is not running avahi and I am not able to install it there. The firewall configuration on the gateway is not blocking any traffic between the networks. I am able to send UDP packets from a host on one network to a host on the other.

When I run tcpdump on a host and try to ping that host.local from a machine on the other network I see no traffic. This means that the gateway is not passing the multicast traffic along. Is there any special setup required on the gateway to allow this?

View 2 Replies View Related

Networking :: How To Resolve Hostnames On DHCP Home Network?

Jun 28, 2010

(although I'm running Solaris, I've posted here as I expect Solaris/LINUX is irrelevant) - more of a general network Q.I have a PC running Solaris 10 (hostname MARKUNIX) and a laptop running WinXP (hostname MARK-LAPTOP). Both are connected to broadband via a router. IP addresses for each are determined via DHCP (192.168.1.nn) and I do not leave either on, 24x7. I am running Oracle on MARKUNIX and want to be able to refer to it by hostname when using Oracle tools on my laptop.Each machine can ping each other ok by ip address and curiously the Solaris PC can ping MARK-LAPTOP (I'm not sure how it resolves that?) - importantly the laptop cannot ping MARKUNIX.Now I could add MARKUNIX to my laptops hosts file but that would mean changing the file each time I boot up as the ip address for MARKUNIX will keep changing (DHCP).

Is there a way to refer to MARKUNIX without having to keep changing ip addresses and use DHCP? As I understand it the 192.168 address is private and is not really the 'real' ip address and as such can be manipulated(fixed?) even whilst using DHCP?Am I right in thinking that a static ip from my broadband supplier is the ip of my connection (router) and I'll still have the same private network referencing issues?What I've covered above pretty much is the extent of my knowledge of networking so bear that in mind please.

View 4 Replies View Related

Debian Configuration :: OpenVPN And IPTables - No Local Hostnames Accessible

Feb 7, 2016

I managed to set up an openvpn server, ip-forwarding and a nat iptable rule for that.

Almost everything works as expected, but my problem is:

Smartphone -> VPN -> Internet ==> works (by ip and hostname)
Smartphone -> VPN -> machine in my local network by IP ==> works
Smartphone -> VPN -> machine in my local network by its hostname => DOES NOT WORK
Machine w/ VPN server -> ping to machine in local network by ip or hostname => works

So, i wonder why i cant access a local machine through the vpn by its hostname. I guess I'm missing a forwarding rule??

iptables dump:
# Generated by iptables-save v1.4.21 on Sun Feb 7 20:56:52 2016
*nat
:PREROUTING ACCEPT [786:59064]
:INPUT ACCEPT [728:53047]
:OUTPUT ACCEPT [19:1487]
:POSTROUTING ACCEPT [20:1576]
-A POSTROUTING -s 10.8.0.0/24 -j MASQUERADE
COMMIT
# Completed on Sun Feb 7 20:56:52 2016

View 0 Replies View Related

Server :: Merak Mail Server All The Users Should Be Able To Get That Content Automatically In Their Outgoing Mails?

Feb 22, 2010

I would like to set disclaimer like content in my meral mail server, so that all the users should be able to get that content automatically in their outgoing mails.

View 3 Replies View Related

CentOS 5 Server :: Start Jboss And Tomcat Automatically, When I Do Reboot The Server?

Sep 9, 2009

I have one server with Jboss and Tomcat installed, I have to start these servers manually everytime I do reboot the server.How I could do to start Jboss and Tomcat automatically, when I do reboot the server?

View 1 Replies View Related

Ubuntu Networking :: Can't Ping Via 'morbo.local' - Can't Reach Systems By Hostnames

Jul 8, 2010

I recently set up an Ubuntu server computer (10.04) with the hostname 'morbo', and with a static IP address. With all my other ubuntu systems i can ping and ssh using their host names, like:

[code]...

i can't reach it via 'morbo.local' nor can i reach my other ubuntu systems from morbo by their hostnames. I have seen a 'quick and dirty' solution which might help here : [URL]... , but i don't want to have to add every system to morbo's list and morbo to every systems list, and because it works without manual configuration on all my other systems, i don't see why it shouldn't be possible here. Currently everything connects to one d-link router - does this mean it is the DNS server?

View 9 Replies View Related

General :: Setup Server To Automatically Synchronize Its Server Clocks?

Oct 5, 2009

How can I setup my Linux server to automatically synchronize its server clocks? We need to ensure our server clocks are set to the correct time always.

View 2 Replies View Related

Software :: Is It Possible To Setup DNSMASQ

Apr 19, 2010

Is it possible to setup DNSMASQ so that it respects the TTL it is given by the upstream DNS server, but it sends out a fixed TTL to its clients?My DNSMASQ server is running on the same local network as all its clients. I want all my clients to be served with a 5 minute TTL, regardless of what the actual domain uses. So for instance if google.com has a ttl of 60 minutes, then I want DNSMASQ to cache it for 60 minutes, but I want my clients to receive a TTL of 5 minutes so that they query my DNSMASQ server again every 5 minutes. I basically want to avoid having each client's OS doing any caching.

View 1 Replies View Related

Fedora :: Dnsmasq For Dhcp To Setup Dns

Sep 2, 2011

Is dnsmasq important for dhcp to setup dns?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved