SRX

Expand all | Collapse all

DNS problems on SRX110h2-va

Jump to Best Answer
  • 1.  DNS problems on SRX110h2-va

    Posted 11-09-2019 07:56
    Hi, having a problem getting my router to be the DNS server on my SRX110.
     
    I have set up dns-proxy and it works if I manually configure my connected clients (that connect using DHCP) to the routers IP address. but by default, they are assigned the DNS name servers from my ISP.   I want all my DHCP clients to get the router as the (forwarding) name server.
     
    I have tried all sorts of configurations to give out my routers IP address instead of the WAN assign address, but nothing works.

     

    Here is the configuration I am running:

    https://pastebin.com/raw/At14arwX



  • 2.  RE: DNS problems on SRX110h2-va
    Best Answer

    Posted 11-10-2019 03:05

    Hello,

     


    @MarkG1234 wrote:
    but by default, they are assigned the DNS name servers from my ISP.   

     

    This happens because of this line in Your config:

     

    propagate-ppp-settings pp0.0

     

    You need to delete it to stop ISP DNS server IPs being dished out to Your DHCP clients 

     

     


    @MarkG1234 wrote:
     I want all my DHCP clients to get the router as the (forwarding) name server.
     
    I have tried all sorts of configurations to give out my routers IP address instead of the WAN assign address, but nothing works.

     



    You need to specify router IP as "name-server" in Your config, under pool. 

     

    set services dhcp pool 192.168.1.0/24 name-server 192.168.1.1

     

     

    BUT - this is old deprecated way to configure JUNOS DHCP server. Please try the new way - example at https://www.juniper.net/documentation/en_US/junos/topics/topic-map/dhcp-server-security-devices.html#id-example-configuring-the-device-as-a-dhcp-server

     

    HTH

    Thx

    Alex