WINs/DNS on Edge Router



  • Can the Edge Router function as a WINS server? I need to resolve IPs by hostname in a non domain environment. Can I either setup the edge router to function as a WINS server or add static entries in the edge router?



  • WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?



  • @fuznutz04 said in WINs/DNS on Edge Router:

    Can the Edge Router function as a WINS server? I need to resolve IPs by hostname in a non domain environment. Can I either setup the edge router to function as a WINS server or add static entries in the edge router?

    Static DNS entries are simple.

    set system static-host-mapping host-name ad.bundystl.com inet 10.254.0.21
    set system static-host-mapping host-name bundydemo.bundystl.com inet 10.254.0.28
    


  • @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.



  • @fuznutz04 said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.

    Yeah, if you don't have a DNS server you control in-house, I'd go for using IPs in the MFP.

    But it looks like JB gave you a way to put static DNS type entries into the EL. Now the question is, assuming you're using the ER DNS source (can you even do that?) will the ER reply from things in it's own Hosts files?



  • @Dashrender said in WINs/DNS on Edge Router:

    But it looks like JB gave you a way to put static DNS type entries into the EL. Now the question is, assuming you're using the ER DNS source (can you even do that?) will the ER reply from things in it's own Hosts files?

    Really? That response belongs in my I can't even thread...



  • @JaredBusch said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    But it looks like JB gave you a way to put static DNS type entries into the EL. Now the question is, assuming you're using the ER DNS source (can you even do that?) will the ER reply from things in it's own Hosts files?

    Really? That response belongs in my I can't even thread...

    I've never used the DHCP in the ER devices - I have no idea if it points to itself for DNS or makes you setup a DNS server that it hands out to DHCP clients.

    If - IF it acts like oh so many home routers, then the other would be assumed as well.



  • @Dashrender said in WINs/DNS on Edge Router:

    @JaredBusch said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    But it looks like JB gave you a way to put static DNS type entries into the EL. Now the question is, assuming you're using the ER DNS source (can you even do that?) will the ER reply from things in it's own Hosts files?

    Really? That response belongs in my I can't even thread...

    I've never used the DHCP in the ER devices - I have no idea if it points to itself for DNS or makes you setup a DNS server that it hands out to DHCP clients.

    If - IF it acts like oh so many home routers, then the other would be assumed as well.

    What does DHCP have to do with DNS? You are conflating again. He asked said that the clients point to the ERL for DNS. I gave the method to put in a static DNS entry in the ERL.



  • @JaredBusch said in WINs/DNS on Edge Router:

    What does DHCP have to do with DNS? You are conflating again. He asked said that the clients point to the ERL for DNS. I gave the method to put in a static DNS entry in the ERL.

    You inferred that his ER was being used for DNS, but didn't actually write that - hence my verbos explanation.



  • @Dashrender said in WINs/DNS on Edge Router:

    @JaredBusch said in WINs/DNS on Edge Router:

    What does DHCP have to do with DNS? You are conflating again. He asked said that the clients point to the ERL for DNS. I gave the method to put in a static DNS entry in the ERL.

    You inferred that his ER was being used for DNS, but didn't actually write that - hence my verbos explanation.

    I inferred nothing.

    @fuznutz04 said in WINs/DNS on Edge Router:

    Can I either setup the edge router to function as a WINS server or add static entries in the edge router?

    This clearly means that the EdgeRouter is being used for DNS. There is not other interpretation of that statement. Because if it was not, then static entries here would do nothing.



  • Hey JB - Have a wonderful day 😃



  • @fuznutz04

    TO be clear, this is how your DNS should be set up in your EdgeRouter.

    configure
    # proper EdgeOS DNS configuration assuming eth1 is your LAN
    set service dns forwarding listen-on eth1
    set service dns forwarding cache-size 150
    set system name-server 127.0.0.1
    # Change the forwarding DNS to whoever you prefer for DNS lookups. 
    # The example here is Google DNS
    set service dns forwarding name-server 8.8.8.8
    set service dns forwarding name-server 8.8.4.4
    # make sure your router has a domain name listed, even if your stuff is on a workgroup. 
    # I like to use the full MS recommended format.
    set system domain-name home.jaredbusch.com
    commit
    save
    exit
    

    Now you can setup any static host mappings you want as I listed in the prior post.
    Obviously change these appropriately.

    set system static-host-mapping host-name ad.bundystl.com inet 10.254.0.21
    set system static-host-mapping host-name bundydemo.bundystl.com inet 10.254.0.28
    set system static-host-mapping host-name bundyhv01 inet 10.254.0.20
    

    If you have your firmware updated to version 1.9.0 then you can use DNSMasq also to get better lookup from DHCP assigned stuff, if your EdgeRouter is also the DHCP server.

    configure
    set service dhcp-server use-dnsmasq enable
    commit
    save
    exit
    


  • @fuznutz04 said in WINs/DNS on Edge Router:

    Can the Edge Router function as a WINS server? I need to resolve IPs by hostname in a non domain environment. Can I either setup the edge router to function as a WINS server or add static entries in the edge router?

    WINS? Why do you need WINS? I'd highly recommend fixing whatever dependency that is.



  • @fuznutz04 said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.

    The copier is trying to use NetBIOS instead of DNS? Are you positive? That's so incredibly unlikely, I've never heard of that scenario before.



  • @Dashrender said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.

    Yeah, if you don't have a DNS server you control in-house, I'd go for using IPs in the MFP.

    But he does. The ERL if nothing else.



  • @Dashrender said in WINs/DNS on Edge Router:

    ...will the ER reply from things in it's own Hosts files?

    No, nothing uses the hosts file for serving out. But that's not where the entries go. That file isn't even exposed in the interfaces (GUI or CLI.)



  • @JaredBusch said in WINs/DNS on Edge Router:

    @fuznutz04

    TO be clear, this is how your DNS should be set up in your EdgeRouter.

    configure
    # proper EdgeOS DNS configuration assuming eth1 is your LAN
    set service dns forwarding listen-on eth1
    set service dns forwarding cache-size 150
    set system name-server 127.0.0.1
    # Change the forwarding DNS to whoever you prefer for DNS lookups. 
    # The example here is Google DNS
    set service dns forwarding name-server 8.8.8.8
    set service dns forwarding name-server 8.8.4.4
    # make sure your router has a domain name listed, even if your stuff is on a workgroup. 
    # I like to use the full MS recommended format.
    set system domain-name home.jaredbusch.com
    commit
    save
    exit
    

    Now you can setup any static host mappings you want as I listed in the prior post.
    Obviously change these appropriately.

    set system static-host-mapping host-name ad.bundystl.com inet 10.254.0.21
    set system static-host-mapping host-name bundydemo.bundystl.com inet 10.254.0.28
    set system static-host-mapping host-name bundyhv01 inet 10.254.0.20
    

    If you have your firmware updated to version 1.9.0 then you can use DNSMasq also to get better lookup from DHCP assigned stuff, if your EdgeRouter is also the DHCP server.

    configure
    set service dhcp-server use-dnsmasq enable
    commit
    save
    exit
    

    Great guide and feedback, thanks. I left before I saw this second post, but I did setup the static entries like you mentioned in your previous post:

    set system static-host-mapping host-name ad.bundystl.com inet 10.254.0.21
    set system static-host-mapping host-name bundydemo.bundystl.com inet 10.254.0.28
    set system static-host-mapping host-name bundyhv01 inet 10.254.0.20
    

    Pinging names from being logged into the ERL, properly resolves now. However, pinging by name from clients was still failing. To get them working quickly, I changed the entries in the printer to just point to the IP addresses of the PCs (which as statically set by DHCP reservation.



  • @scottalanmiller said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.

    The copier is trying to use NetBIOS instead of DNS? Are you positive? That's so incredibly unlikely, I've never heard of that scenario before.

    The copier was set to use \computername\scan as a location to send files for the "scan to PC" function. It wasn't resolving properly after I installed the ERL.



  • @fuznutz04 said in WINs/DNS on Edge Router:

    @scottalanmiller said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.

    The copier is trying to use NetBIOS instead of DNS? Are you positive? That's so incredibly unlikely, I've never heard of that scenario before.

    The copier was set to use \computername\scan as a location to send files for the "scan to PC" function. It wasn't resolving properly after I installed the ERL.

    What was doing DNS resolution before the ERL? I'm guessing it was using broadcasting, though I don't know why the ERL would stop that part from working.



  • @Dashrender said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @scottalanmiller said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.

    The copier is trying to use NetBIOS instead of DNS? Are you positive? That's so incredibly unlikely, I've never heard of that scenario before.

    The copier was set to use \computername\scan as a location to send files for the "scan to PC" function. It wasn't resolving properly after I installed the ERL.

    What was doing DNS resolution before the ERL? I'm guessing it was using broadcasting, though I don't know why the ERL would stop that part from working.

    The only thing in place prior to the ERL was the Comcast gateway device which was also handing out DHCP to the internal LAN.



  • @Dashrender said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @scottalanmiller said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.

    The copier is trying to use NetBIOS instead of DNS? Are you positive? That's so incredibly unlikely, I've never heard of that scenario before.

    The copier was set to use \computername\scan as a location to send files for the "scan to PC" function. It wasn't resolving properly after I installed the ERL.

    What was doing DNS resolution before the ERL? I'm guessing it was using broadcasting, though I don't know why the ERL would stop that part from working.

    The ERL would stop that part from working quickly because prior to 1.9.0 and the use of dnsmasq, the ERL would often not know about DNS names for the things it assigned. Mostly it was a problem with static reservations I believe.


  • Banned

    WINS? Most likely you just need to setup the DNS Search Names/Space but in a workgroup any computer can become the master browser



  • @fuznutz04 said in WINs/DNS on Edge Router:

    @scottalanmiller said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.

    The copier is trying to use NetBIOS instead of DNS? Are you positive? That's so incredibly unlikely, I've never heard of that scenario before.

    The copier was set to use \\computername\scan as a location to send files for the "scan to PC" function. It wasn't resolving properly after I installed the ERL.

    While that is NetBIOS notation, it's also what Windows uses when going to DNS. So that doesn't itself give you any reason to suspect NetBIOS. Check DNS first.


  • Banned

    @scottalanmiller said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @scottalanmiller said in WINs/DNS on Edge Router:

    @fuznutz04 said in WINs/DNS on Edge Router:

    @Dashrender said in WINs/DNS on Edge Router:

    WINS eh? I seriously doubt it.

    You have apps that are still relying on NetBIOS for something? Can't solve this with DNS?

    It's a copier that is trying to access by computer name. I guess a simple solutions would just be to change the copier to use IPs instead.

    The copier is trying to use NetBIOS instead of DNS? Are you positive? That's so incredibly unlikely, I've never heard of that scenario before.

    The copier was set to use \\computername\scan as a location to send files for the "scan to PC" function. It wasn't resolving properly after I installed the ERL.

    While that is NetBIOS notation, it's also what Windows uses when going to DNS. So that doesn't itself give you any reason to suspect NetBIOS. Check DNS first.

    or you can try \\computername.domain.tld\ but, when using just the hosts you need either DNS search setup to append the domain name (likely if you add a domain name to the TCP/IP settings in the copier it will do this) or you need a computer acting as the WINs master browser but that's depreciated.



  • @JaredBusch

    I will still need to put in static entries, even though I enable this ?

    set service dhcp-server use-dnsmasq enable
    


  • @fuznutz04 said in WINs/DNS on Edge Router:

    @JaredBusch

    I will still need to put in static entries, even though I enable this ?

    set service dhcp-server use-dnsmasq enable
    

    If they are in the DHCP of the router, you should not.

    Everything may need rebooted though



  • @JaredBusch

    Excellent. So then the only entries needed would be any device that has a static IP address.

    EdgeOS is getting better all the time.



  • @fuznutz04 said in WINs/DNS on Edge Router:

    @JaredBusch

    Excellent. So then the only entries needed would be any device that has a static IP address.

    Yes.

    EdgeOS is getting better all the time.

    Yes.


Log in to reply