Results 1 to 3 of 3

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    -
    Join Date: Apr:2004
    Location: Sf
    Posts: 1,332

    - bash script

    :
    PHP Code:
    # svccfg -s network/dns/client
    svc:/network/dns/clientsetprop config/search astring: ("example.com" "sales.example.com")
    svc:/network/dns/clientsetprop config/nameserver net_address: (192.168.1.10 192.168.1.11)
    svc:/network/dns/clientselect network/dns/client:default
    svc:/network/dns/client:default> refresh
    svc
    :/network/dns/client:default> quit 
    , -, :
    PHP Code:
    svccfg -s network/dns/client setprop config/search astring"example.com""sales.example.com"
    svccfg -s network/dns/client setprop config/nameserver net_address192.168.1.10 
    , -svccfg .
    3- - select bash .
    "" .
    11 11/11.
    !
    1.5

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    , , :

    input.txt:
    Code:
    setprop config/search = astring: ("example.com" "sales.example.com")
    setprop config/nameserver = net_address: (192.168.1.10 192.168.1.11)
    select network/dns/client:default
    refresh
    quit
    :

    Code:
    svccfg -s network/dns/client < input.txt
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    -
    Join Date: Apr:2004
    Location: Sf
    Posts: 1,332
    -
    1.5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |