General :: Dnsmasq Without Altering /etc/hosts File Manually?

Jul 19, 2011

I've trying to get dnsmasq working as a combined dns and dhcp server. It's infuriating so far... In short, the DNS works fine for anything added to /etc/hosts, and the dhcp works fine, but the dhcp is not updating the dns with hostname information from clients.

The outcome of this is that i can only ping a node by hostname if i know it's address, which means setting a static dhcp allocation and putting the hostname into /etc/hosts manually, which is very annoying and kind of defeats the poit of dhcp. There must be a way to get dnsmasq to update the hosts file, surely The clients aren't using fqdn's if that matters, and i think i've tried every combinination of "expand-hosts" and "domain=" following is the dnsmasq config file contents:

domain-needed
bogus-priv
except-interface=tun0

[code]....

View 2 Replies


ADVERTISEMENT

OpenSUSE Network :: No DNS Caching Until Manually Restart Dnsmasq?

May 29, 2010

My upstream DNS server is a bit slow, so I've installed the dnsmasq cacher locally. I have the service starting on runlevels 2, 3, and 5. But I can tell by Firefox's behavior that dnsmasq does not work upon boot. Firefox lets its own DNS cache expire after 60 seconds. When I do my second Google search five minutes after my first, the second DNS lookup for www.google.com is just as slow as the first.If I manually restart the dnsmasq service, I get the fast name resolutions I expect.

View 2 Replies View Related

Networking :: Manually Maintaining /etc/hosts When Using DHCP??

Feb 17, 2010

I have set up a home network using a modem/router, which my devices connect to via ethernet and wireless. I have got it working but i'm still not happy (stick with me...)!

I have settings configured so as to utilise DHCP, so IP addresses for the different machines are automatically assigned by the modem/router (as i understand it). I then obtained these auto-assigned IPs by running ifconfig on each device. I tested connections between the devices by pinging each other using these IPs (ie ping 192.168.2.2).

BUT I want to be able to use hostnames (ie ping dandelion) instead, and the only way I can make this work is to add hosts and corresponding IPs into the /etc/hosts file.

I have made it work in this way, but doesn't this method defeat the idea of DHCP, as I will now presumably have to manually maintain the /etc/hosts files on each device.

View 4 Replies View Related

Security :: Use Current /etc/hosts File To Do An Ssh-keyscan Instead Of Making A Special List Of Hosts?

May 2, 2011

I'm trying to use ssh-keyscan to get some known_host file population going on, but I have a ton of hosts I want to scan, all with multiple aliases in /etc/hosts. Is there a way to use my current /etc/hosts file to do an ssh-keyscan instead of making a special list of hosts that (from what I've read) ssh-keyscan needs?

View 2 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 :: No Hosts File - Just Hosts.allow And .deny?

Jan 26, 2011

Probably an easy (which means stoopid) question...I am trying to reroute a website using my hosts file so that it matches my servers certificate file for testing without effect dns and the live site.When I went to edit my /etc/hosts file it is non-existent. I have, I am assuming in it's place, hosts.allow and hosts.deny. Can anyone explain why I do not have a hosts file?

View 1 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

General :: Ubuntu - How To Lock The /etc/hosts File With A Passcode

Dec 18, 2010

I would like to lock the /etc/hosts file somehow in a way that only someone else can unlock it, possibly using a lock code.I would then give the passcode to someone else.I'm running Ubuntu 10.10.

View 2 Replies View Related

General :: Reboot Not Required After Changing HOSTS File Content?

Oct 18, 2010

I was having a discussion with someone who asked me whether a Linux OS has to be rebooted when the hosts file is modified. From personal experience, on Windows I change the file but don't reboot and I've seen others do the same thing. I assume Linux has no exception(s), but is there any reason why a reboot is not required (to at least justify my actions)?

View 2 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 Update Looking For Config File

May 26, 2010

I did a yum update this morning that included a dnsmasq update. Subsequently, for an unrelated reason, I restarted dnsmasq, but it failed because /etc/dnsmasq.d didn't exist. It looks like my /etc/dnsmasq.conf file now includes "conf-dir=/etc/dnsmasq.d" at the end. Since dnsmasq was starting and I didn't remove dnsmasq.d, I assume this line was added by the update. Commenting the line resolves the issue.

An alternative hypothesis, given that I don't really know what the state of /etc/dnsmasq.conf and /etc/dnsmasq.d/ was before the update, might be that the directory did exist, but was removed by the update. I find this the least likely of my 2 stated hypotheses. (There are other hypotheses, but I think they are even less likely). Am I correct is concluding the conf-dir line was added by the update? If so, shouldn't the updated RPM create the directory during install?

View 6 Replies View Related

General :: Scp With Range Of Files To Be Copied To - From - Or Between Different Hosts - Error - No Such File Or Directory

Jun 27, 2011

Working fine: ==> scp my_log-bin.01393[0-9] root@192.168.103.66:/backup/ error - No such file or directory: ==> scp my_log-bin.0139[30-99] root@192.168.103.66:/backup/

View 4 Replies View Related

General :: Permissions - Manually Mount A File System Read/write As A Normal User?

Oct 6, 2010

I want to simply mount an ext4 file-system onto a normal mount point in Ubuntu (/media/whereever), as read-writable for the current logged-in user, i.e. me.

I don't want to add anything into /etc/fstab, I just want to do it now, manually. I need super-user privileges to mount a device, but then only root can read-write that mount. I've tried various of the mount options, added it into fstab, but with no luck.

View 3 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

General :: Dnsmasq Service Not Running - Bad Option

Jan 29, 2011

It says that this is a bad option
dchp-range=ignore,192.168.1.99,192.168.1.99
I am very new to linux but it says that's a bad option to why my dnsmasq service isn't running.

View 10 Replies View Related

Ubuntu Networking :: Proxy Settings: Allowed Hosts Instead Of Ignored Hosts

Aug 17, 2011

Well, as many proxy applications, GNOME Network Proxy Preferences only allow to ignore hosts. What I want to do is exactly the opposite. I only want to use the proxy for few sites. Is it possible to define only the allowed hosts in any way?

PS: I know FoxyProxy add-on for Firefox does this, but 1)I don't use Firefox and 2)I want the proxy settings system wide not only for browser.

View 9 Replies View Related

Fedora :: Way Of Altering Time Between Password Requests

Oct 26, 2010

Is there a way of altering the time between password requests. For example after I login there seems to be a certain amount of time before the screen blanks out and a new request for the user password is asked. I would like to increase the time substantially.

View 1 Replies View Related

Ubuntu :: Remove Password For Altering System?

Nov 13, 2010

Having recently installed Ubuntu 10.10, I'm currently looking around for different programs. However, it's already getting on my nerves that I have to type my password every time I want to install something. Where and how do I disable this? I already set myself as admin in the user settings but that doesn't seem to work.

This goes for things like changing system settings too, it's really annoying.

View 4 Replies View Related

Ubuntu :: Add An Entry To The Hosts File?

Jul 5, 2010

I share a computer with my brother. It runs Lucid Lynx. I want to add an entry to the hosts file that will affect him negatively. Is there a way I can add the entry, without it affecting him, like, is there a user-specific hosts file?

View 9 Replies View Related

General :: Manually Install A Debian File For Debian?

Sep 17, 2009

I cant install programs that end with .deb automatically... how to install them manually on konsole?

View 5 Replies View Related

Ubuntu Servers :: Create Raid 0 Without Altering Install ?

Nov 17, 2010

I have 10.04.1 on my server with a 250gb sata drive. I have all my files on this hard drive. I'm running out of space so I have another 250gb sata drive I need installed. I want to create raid 0 so I can expand my servers hard drive space. I don't want to lose my data on original hard drive or reinstall to create the raid. Is there a way to achieve this with mdadm without altering the first hard drives data?

View 2 Replies View Related

Ubuntu :: Command For Altering Maximization State Of Window

Jan 6, 2011

Is there a command I can implement into a script that I am working on to change the maximization state of a window (maximize/restore)? I know there is a keyboard shortcut (Alt + F10), and I'm not interested in doing that.

View 2 Replies View Related

Software :: Tape Loader Device /dev/sgN Is Altering After Each Reboot

Sep 24, 2009

We are running SLES 11 where an iscsi tape library is attached. To load the tape in a slot we are using for
instance the command #mtx -f /dev/sg1 load 2 which is doing very well. But after a server's reboot the device name of the loader is now /dev/sg4 or /dev/sg5 I mean it is dynamic. Is there any way to have a fixed device name for all times?

View 1 Replies View Related

Ubuntu :: Is The /etc/hosts File Related To Subdomains

Feb 16, 2010

I am trying to add subdomains on ubuntu 9.10 desktop edition and and I am not sure whether I need to add some info.(such as 127.0.0.1 sub1.example.com and so on) to the /etc/hosts file like the windows' windows/system32/drivers/etc/hosts file. I used to use the wamp-server(on Windows 7), I needed to edit 3 files, httpd.conf, httpd-vhosts.conf and hosts. And almost every edit is made in the httpd-vhosts.conf file on wamp-serveriles should be edited? or what else should be done that I didn't mention?

View 1 Replies View Related

Ubuntu :: How To Password Protect The HOSTS File

Jul 13, 2010

tell me a way to password protect the HOSTS file in ubuntu so that when i block certain websites the other person cannot unblock them.
IMP: i donot want the HOSTS file to be protected by 'root' password as the other person knows it.

View 9 Replies View Related

Ubuntu :: File Hosts Change After Reboot In 10

Apr 25, 2011

I want to know why when i change the file hosts, fill it with due parameters and reboot the system, the latter unexpectedly change ?

View 2 Replies View Related

Ubuntu :: Hosts File Keeps Reverting / Stop It To Do So?

Aug 3, 2011

I'm configuring Apache to work from several development directories as per these instructions: http://tuxtweaks.com/2009/07/how-to-...-apache-linux/

Got it all to work ok, for a while but then when I reboot the entries I've made in the hosts file dissapear and I can no longer use them.

I'm assuming DHCP reverts the hosts file or something?

What's the 'proper' way to get an entry into a hosts file and have it stay there?

View 3 Replies View Related

Networking :: Add Host Name For The NIC Card Into /etc/hosts File

Jan 31, 2010

Instructions say "Add hostname for the NIC card into /etc/hosts file" do I touch or mkdir it in?

View 11 Replies View Related

Server :: Postfix DNS: Why Does It Not Check Hosts File

Mar 22, 2011

I run a few virtual servers at home behind a NAT, including an e-mail server, with dynamically updated dns records pointing to each of the servers. Consequently, I suffer from the loopback problem when working with these servers from my desktop PC. (E.g., I ping one of the dns hostnames and the ping goes to my router instead of the server). I fixed this problem by manually adding the in-home IP addresses and name pairs to my /etc/hosts, and then setting /etc/host.conf to a "hosts, bind" order.

This seems to work for every application on my desktop except for one: the postfix installation on my desktop PC (used for mailing smartctl messages and so forth) cannot communicate with my in-home e-mail server (times out). I checked the logs, and it looks like it is trying to use the IP address from the actual A-RECORD, rather than the address in my hosts file.

So I'm not quite sure what to do. There seems to be a "proxy_interfaces" parameter in main.conf which might be relevant, but I think it only deals with received mail. I'd prefer to have the mail going to that e-mail server, rather than also having to check the spool on my local desktop accounts.

View 1 Replies View Related

Applications :: Create Local Mirror Of Remote Server Without Altering It?

Jul 29, 2009

I'm new here and hope to profit from your immense linux knowledge and of course to share my own experience where I can.

I'm in a student organization and we use a file server that runs linux. I can log in through ssh and copy using scp using login and password (no rsa/dsa keys because most users are windows users using winSCP and they're lacking in computer knowledge so we don't require them to mess around with keys)

However, I don't have network access everywhere, so I'd like to make a copy on my laptop harddisk of some of the folders I use most frequently. Note that I don't need it to copy files from my pc back to the remote server so I don't need two-way sync. Deleting the local copy every time and downloading a new full copy is not an option as we are talking about several gigabytes and the download speed is limited. Normally I would use Unison, however, this requires unison to be installed on both pc's and I can't install any software on the file server so this is not an option.

Any ideas on how to achieve this? I'm reasonable knowledgable about linux so I don't mind tinkering with some config files and using command line applications.

View 1 Replies View Related







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