Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm looking to configure DNS naming on my WZR-HP-G300NH router. How would one go about doing this? I have found the documentation for Dnsmasq here, and the place where it appears you can configure DNSMasq is located in the WZR-HP-G300NH configuration Web interface under Services->Services->DNSMasq->Additional DNSMasq Options

Does that textarea edit /etc/hosts or something?

Suppose I want to call my local domain, leerdomain.local, and I want to assign a name like "wp" to a static ipaddress on my local lan.

Router Model: WZR-HP-G300NH Firmware Version: DD-WRT v24SP2-EU-US (08/19/10) std

share|improve this question

1 Answer 1

up vote 2 down vote accepted

That text area probably edits dnsmasq.conf.

To accomplish your first request, use

expand-hosts
domain=leerdomain.local

That will automatically set up DNS entries based on hostnames. So when a computer named example requests an IP address via DHCP, a DNS record will be created that maps example.leerdomain.local to the IP address the computer received.

For your second request, the following would set up a DNS record that maps wp to 192.168.1.23. Substitute whatever IP address you need, of course.

address=/wp/192.168.1.23
ptr-record=wp,192.168.1.23
share|improve this answer
    
Yup that did it! Here's the link to the dd-wrt documentation on that: dd-wrt.com/wiki/index.php/DNSMasq_-DNS_for_your_local_network-_HOWT‌​O –  leeand00 Mar 24 '11 at 10:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.