Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

dhcpd and dnsmasq

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Obsidian_MH
Apprentice
Apprentice
User avatar
Posts: 170
Joined: Sun May 30, 2004 11:26 pm
Location: Pittsburgh, PA, USA
Contact:
Contact Obsidian_MH
Website

dhcpd and dnsmasq

  • Quote

Post by Obsidian_MH » Wed Mar 23, 2005 11:30 pm

I'm setting up an internal network for LAN Parties...

Currently running dhcpd and dnsmasq (or atleast trying to)...

EDIT: They're getting IPs now... and they see the static-IP'd machines. DNS just doesn't work, and I thought dnsmasq was supposed to work stock with /etc/hosts?

Here's the dhcpd.conf

Code: Select all

authoritative;
ddns-update-style ad-hoc;
subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.6 192.168.1.250;
    default-lease-time 259200;
    max-lease-time 518400;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.1.255;
    option domain-name-servers 192.168.1.1;
}
Obsidian
Top
Shazam
Apprentice
Apprentice
User avatar
Posts: 191
Joined: Tue Nov 23, 2004 3:44 pm
Location: Germany
Contact:
Contact Shazam
Website

  • Quote

Post by Shazam » Sat Mar 26, 2005 9:00 pm

dnsmasq is a programm, which takes you resolve requests and redirects them to the internet. so unless you lan takes place in the internet, the program will be useless. try using a real dns server like bind. (emerge bind) however setting this one up is pain in the ass. but the dhcp-server and the dns server are both made by ISC, so they should work together on the right setup. just visit www.isc.org
Top
WarMachine
Apprentice
Apprentice
Posts: 181
Joined: Mon Jul 15, 2002 7:57 pm

  • Quote

Post by WarMachine » Sun Mar 27, 2005 6:28 am

According to its manpage (or AFAIK from reading it) it should resolve entires that are in the server's hosts file regaurdless of an internet connection. I haven't tried using it in this specific situation so I'm not exactly sure what you need to do. There is a setting that allows you to define your DNS server (the one outside that your gateway reads) or you can set it to auto and have it read from /etc/resolv.conf. I would try playing with these, maybe set a valid internet IP address in resolv.conf and if that changes anything even though you're not connected to the internet.

Of course the easiest answer is connect to the internet!
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic