Тогда почему после restart DNS меняется на 192.168.0.1 ?
И вообще выводит,
sneg@sneg-desktop:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... postconf: fatal: open /etc/postfix/main.cf: No such file or directory
There is already a pid file /var/run/dhclient.eth0.pid with pid 4217
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/Listening on LPF/eth0/00:1f:d0:68:f9:fa
Sending on LPF/eth0/00:1f:d0:68:f9:fa
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
* Reloading /etc/samba/smb.conf smbd only
...done.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/Listening on LPF/eth0/00:1f:d0:68:f9:fa
Sending on LPF/eth0/00:1f:d0:68:f9:fa
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPOFFER of 192.168.0.100 from 192.168.0.1
DHCPREQUEST of 192.168.0.100 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.100 from 192.168.0.1
* Reloading /etc/samba/smb.conf smbd only
...done.
bound to 192.168.0.100 -- renewal in 264225 seconds.
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
[ OK ]
sneg@sneg-desktop:~$ sudo gedit /etc/resolv.conf
sneg@sneg-desktop:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... postconf: fatal: open /etc/postfix/main.cf: No such file or directory
There is already a pid file /var/run/dhclient.eth0.pid with pid 4538
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/Listening on LPF/eth0/00:1f:d0:68:f9:fa
Sending on LPF/eth0/00:1f:d0:68:f9:fa
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
* Reloading /etc/samba/smb.conf smbd only
...done.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/Listening on LPF/eth0/00:1f:d0:68:f9:fa
Sending on LPF/eth0/00:1f:d0:68:f9:fa
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER of 192.168.0.100 from 192.168.0.1
DHCPREQUEST of 192.168.0.100 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.100 from 192.168.0.1
* Reloading /etc/samba/smb.conf smbd only
...done.
bound to 192.168.0.100 -- renewal in 230387 seconds.
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
[ OK ]