My Belkin router has an option to set a local domain name, which, I suspect, allows me to address hosts within my own network using this domain. By default, this is set to be "Belkin".

Is it possible to call hosts within my network like this, e.g. ping foobar.belkin instead of ping

The thing is, my routers internal page shows all set hostnames (so dhclient seems to work) and the router itself is reachable as router.belkin, but no other hosts are.

My problem here is that the router knows each hosts name, but the hosts don't know each others name. How can I fix that?

Note: Nmap showed that port udp/53 for DNS is open on my router, but I can't find any way to configure it on the Web-interface.

Add:// It's a "Belkin F7D3302 v1"

  • Well, can you ping the local clients by IP?
    – M.Bennett
    May 5, 2013 at 21:43
  • Yes, without problem
    – MechMK1
    May 7, 2013 at 19:57
  • Though I can reach my FRITZ!Box using http://fritz.box, I access other machines on its network using .local rather than .box. Earlier, with another modem/router, it was .lan.
    – Arjan
    May 14, 2013 at 20:44
  • I think we all got ahead of ourselves answering this question without actually knowing what Belkin product is being used. Which model router are you using?
    – Qwilson
    May 15, 2013 at 13:09

7 Answers 7


In general the router won't act as a DNS server but they'll often act as a DNS proxy. That is, in DHCP they'll give out their own IP as the DNS server and then they'll turn around and hit the real DNS servers. If it's doing this then I'd think you could resolve those local, .belkin, names.

Check ipconfig /all and see if the Default Gateway and DHCP Server have the same IP. If not then enter nslookup, then enter "server ROUTER_IP" at the prompt and try to do a lookup on google.com. If that works then there's probably a setting in the router to have it give it's own IP as the DNS server that's not checked.


If the machines on your LAN run a relatively modern operating system, then you can access them by appending ".local" to their host name, like this :

ping MACHINE_NAME.local

To get the name from a given IP, use

avahi-resolve-address MACHINE_IP

To see all connected machine names and IPs on the local network, use something like this BASH command :

px-lan-scan () {
    LOCAL_MASK=$(ip -o -4 addr show | awk -F '[ /]+' '/global/ {print $4}' | cut -d. -f1,2,3)
    GATEWAY=$(route -n | \grep '^' | awk '{print $2}')
    if [ $1 ] ; then range=$1 ; else range="10" ; fi

    for num in $(seq 1 ${range}) ; do
        if [[ $IP == $GATEWAY ]] ; then MACHINE="gateway" ; else MACHINE=$(avahi-resolve-address $IP 2>/dev/null | sed -e :a -e "s/$IP//g;s/\.[^>]*$//g;s/^[ \t]*//") ; fi
        ping -c 1 $IP>/dev/null
        if [ $? -eq 0 ] ; then
            echo -e "UP    $IP \t ($MACHINE)" ; else
            echo -e "DOWN  $IP"
  • 2
    This works if you have an avahi daemon running in destination host, which is not default in some cases.
    – logoff
    May 30, 2020 at 19:25
  • Is there an equivalent of this command for Windows?
    – Shayan
    Nov 24, 2021 at 9:41
  • The Bash function might not work as intended as there may be more than one line in LOCAL_MASK. (ip -o -4 addr show gives this line, too: 3: docker0 inet brd scope global docker0\ valid_lft forever preferred_lft forever)
    – jarno
    Apr 29, 2022 at 23:39
  • Might be better to use ip -o -4 -br addr | awk '$2 == "UP"{print $3}' | cut -d. -f1-3 to get LOCAL_MASK.
    – jarno
    May 2, 2022 at 13:01

Sure, this is what I do with my router at home.

Your router should be able to do this as long as you have its DNS serving abilities turned on so that it processed DNS requests for the your LAN for that domain (it'll forward requests for other domains to your usual DNS servers such that your web browsing isn't broken on the clients).

You need to make each client use the router for their DNS lookups, which they likely will out the box assuming you're also using DHCP.

  • My router is a DHCP server, but I'm not sure if it is able to serve as DNS server. At least, I have found no such option
    – MechMK1
    May 7, 2013 at 19:58
  • i'd be surprised if it couldn't, to be honest. I'm using an asus router but with ddwrt firmware on it. Pretty sure it could do it out the box though.
    – Sirex
    May 7, 2013 at 21:03
  • I have googled a little and couldn't find anything for Belkin routers
    – MechMK1
    May 9, 2013 at 10:56
  • @Sirex I think key difference here is that ASUS router uses DDWRT for its firmware. That software is well known, as is OpenWRT, for providing great features like you would expect from a router
    – b01
    Dec 26, 2015 at 22:50

The short answer is (for the most part) no. Your router (in most cases) is not a dns server. You can however set static entries for all of your devices and then add them to your host list within the given devices.

The Belkin F7D3302 does not support serving DNS.

  • You might very well be right, but all home-level modem/routers I have used (like SpeedTouch, FRITZ!Box) did come with some built-in DNS server. (Or at least, I could always use computer names rather than some IP address.)
    – Arjan
    May 14, 2013 at 20:42
  • Well David is using a Belkin. He's mentioned that he does not see a place to configure dns settings within the router. My answer was based on the assumption (formed by the info given) that this router will not manage dns.
    – Qwilson
    May 15, 2013 at 13:17
  • Yes this works, but this is the most undesirable option as it is very hard to maintain. And if the router changes any of the IPs it breaks.
    – b01
    Dec 26, 2015 at 22:45

I've had the exact same problem.

The problem seems to be that if you try to address a local host name, the router automatically appends ".belkin" assuming belkin is what you have set as your local domain name. Changing it to something else will not solve the problem and you can't leave this blank.

As xaccrocheur said above, most modern OSs will access most things by appending .local So... I have done a sort of work-around which works well with most of my machines. I changed the Local domain name setting on the router to local

I can now access MOST devices by host name only


Install and configure dns server within the local network, register it on all hosts, enter the internal dns server first in the list of dns servers on the Belkin router. Then you will have what you want.

  • 2
    I'd like to respectfully disagree with your answer. Placing a dns server in the network would be a solution, but given the fact David's question is specific to achieving dns through the router this is not an acceptable answer.
    – Qwilson
    May 15, 2013 at 13:15
  • @Qwilson Gorgeous. Where, then, need to store and locate dns records for the local device?
    – STTR
    May 15, 2013 at 13:35
  • For (most) local devices, there will be a host file for internal records, and a dedicated server for outside records (e.g.
    – Qwilson
    May 15, 2013 at 13:46

While I do not suggest doing this, it would give you the desired result (being able to ping local hostnames without setting up a separate DNS server)

  1. On your primary computer, browse to C:\Windows\System32\drivers\etc
  2. open the hosts file using notepad
  3. scroll to the bottom of your hosts file
  4. add a new line below the last commented line in the file that looks like this router.belkin hostname hostname2

Save the hosts file.

Now try to ping hostname and hostname2, you should see the following

ping hostname2

Pinging hostname2 [] with 32 bytes of data:

ping hostname

Pinging hostname2 [] with 32 bytes of data:

Again, this is not how I would do it. I would opt to setup a DNS server myself, but if you do not have that option this is a quick and dirty alternative.

Oh dont forget if you plan on doing this, add yourself to the security permissions on the hosts file so you can write to the file. Also do not forget to copy this hosts file to all of the other machines on your network.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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