Junos OS

last person joined: 6 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  DHCP Two DNS

    Posted 09-08-2015 00:13

     

    How to set two DNS in DHCP?


    set system services dhcp pool 192.168.1.0/24 name-server 192.168.1.5 192.168.1.10

     

    Thanks.



  • 2.  RE: DHCP Two DNS
    Best Answer

     
    Posted 09-08-2015 00:16
    Configure it 2 times as below.

    set system services dhcp pool 192.168.1.0/24 name-server 4.2.2.2
    set system services dhcp pool 192.168.1.0/24 name-server 8.8.8.8

    [edit]
    root# show system services dhcp
    pool 192.168.1.0/24 {
    name-server {
    4.2.2.2;
    8.8.8.8;
    }
    }

    [edit]
    root#


  • 3.  RE: DHCP Two DNS

    Posted 09-08-2015 01:32

    Thank you guys for your help.

     

    It cross my mind to configure two lines but hoping that can just put a space and another IP to save typing. hehehe..

     

    Thanks again.



  • 4.  RE: DHCP Two DNS

     
    Posted 09-08-2015 00:16

    Hi JJJCR,

     

    You have to use to separate lines;

    set system services dhcp pool 192.168.1.0/24 name-server 192.168.1.5
    set system services dhcp pool 192.168.1.0/24 name-server 192.168.1.10

     



  • 5.  RE: DHCP Two DNS

     
    Posted 09-08-2015 00:22

    Hello,

     

    You can configure multiple servers as below:

     

    set system services dhcp pool 1.1.1.0/24 name-server 2.2.2.2
    set system services dhcp pool 1.1.1.0/24 name-server 1.1.1.1

     

    They should be visible as:

     

    dhcp {
        pool 1.1.1.0/24 {
            name-server {
                2.2.2.2;
                1.1.1.1;
            }
        }
    }

     

    Following link gives a basic idea of DHCP Server configuration on SRX:

     

    http://kb.juniper.net/InfoCenter/index?page=content&id=KB15754

     

    Regards,

     

    Rushi