The easiest way is to run netconfig as ROOT. Enter your hostname,
domain name, etc. When it gets to the point where it asks you about
setting it to loopback, say no and go on to answer the rest of the
questions. It will ask you for your name server IP, netmask, etc.
Have all this info handy!
When you're done with that run netconfig *again* only this time when
it asks you if you want to run only loopback say *YES*. I know
there's got to be a better way to do it, but I couldn't figure out
where it was putting the name server IP and this was the only way
to get it in (where ever it went ;-D ).
Now all you need to do is write a dip script to call from the
program dip. I'll attach mine just as a reference... You'll
need to modify it accordingly.
Hope this helps,
# Prepare for dialing
wait OK 5
if $errlvl != 0 goto modem_trouble
if $errlvl != 1 goto modem_trouble
wait ogin: 20
if $errlvl != 0 goto login_error
send [put your user name here]\n
wait word: 20
if $errlvl != 0 goto password_error
send [put your password here]\n
get $remote remote 1
get $local remote 1
get $mtu 296
print CONNECTED $locip ---> $remote
print TIME-OUT waiting for SLIPlogin to fire up...
print Trouble waiting for the Login: prompt...
print Trouble waiting for the Password: prompt...
print Trouble ocurred with the modem...
print CONNECT FAILED to $remote