Changing server ip address

Discussion in 'Installation/Configuration' started by cruz, Jun 14, 2008.

  1. cruz

    cruz New Member

    I setup the Debian perfect setup and now I am setting up ipcop. I want to change the ip address to the box. anyone know how to do this? thanks.
     
  2. mizzfit

    mizzfit New Member

    ifconfig eth0 192.168.1.102 netmask 255.255.255.0 broadcast 192.168.1.255
     
  3. cruz

    cruz New Member

    changing ip address

    I tried to change the ip address by modifying vi /etc/network/interfaces. Then I went into ipsconfig and changed the ip address to my static ip in the managment area. then I changed the ip addresses on the sites I had setup to the static ip for my server. Then I changed the dns to the new static ip. I changed all sites ips to point to my server. I am having mail issues. Can I run this command to maybe fix what I shuld have waited for an answer for or what? here is the error log from my mail log.
    HTML:
    Jun 18 06:18:09 server1 postfix/master[30382]: terminating on signal 15
    Jun 18 06:18:09 server1 postfix/master[30782]: daemon started -- version 2.3.8, configuration /etc/postfix
    Jun 18 06:20:12 server1 postfix/smtpd[30884]: connect from unknown[89.222.153.155]
    Jun 18 06:20:13 server1 postfix/smtpd[30884]: 9D5556D098C: client=unknown[89.222.153.155]
    Jun 18 06:20:14 server1 postfix/cleanup[30891]: 9D5556D098C: message-id=<[email protected]>
    Jun 18 06:20:14 server1 postfix/qmgr[30797]: 9D5556D098C: from=<[email protected]>, size=2449, nrcpt=1 (queue active)
    Jun 18 06:20:14 server1 postfix/cleanup[30891]: B12536D0993: message-id=<[email protected]>
    Jun 18 06:20:14 server1 postfix/local[30892]: 9D5556D098C: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=1.5, delays=1.5/0.01/0/0, dsn=2.0.0, status=sent (forwarded as B12536D0993)
    Jun 18 06:20:14 server1 postfix/qmgr[30797]: B12536D0993: from=<[email protected]>, size=2612, nrcpt=1 (queue active)
    Jun 18 06:20:14 server1 postfix/qmgr[30797]: 9D5556D098C: removed
    Jun 18 06:20:15 server1 postfix/smtpd[30884]: disconnect from unknown[89.222.153.155]
    Jun 18 06:20:31 server1 postfix/pickup[30796]: D3A306D098C: uid=33 from=<www-data>
    Jun 18 06:20:31 server1 postfix/cleanup[30891]: D3A306D098C: message-id=<[email protected]>
    Jun 18 06:20:31 server1 postfix/qmgr[30797]: D3A306D098C: from=<[email protected]>, size=4660, nrcpt=1 (queue active)
    Jun 18 06:20:31 server1 postfix/pickup[30796]: E32B06D0994: uid=33 from=<www-data>
    Jun 18 06:20:31 server1 postfix/cleanup[30891]: E32B06D0994: message-id=<[email protected]>
    Jun 18 06:20:31 server1 postfix/qmgr[30797]: E32B06D0994: from=<[email protected]>, size=3799, nrcpt=1 (queue active)
    Jun 18 06:20:31 server1 postfix/cleanup[30891]: E61376D0995: message-id=<[email protected]>
    Jun 18 06:20:31 server1 postfix/local[30892]: E32B06D0994: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.03, delays=0.02/0/0/0.01, dsn=2.0.0, status=sent (forwarded as E61376D0995)
    Jun 18 06:20:31 server1 postfix/qmgr[30797]: E61376D0995: from=<[email protected]>, size=3963, nrcpt=1 (queue active)
    Jun 18 06:20:31 server1 postfix/qmgr[30797]: E32B06D0994: removed
    Jun 18 06:20:34 server1 postfix/smtp[30893]: B12536D0993: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=20, delays=0/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=hotmail.com type=MX: Host not found, try again)
    Jun 18 06:20:51 server1 postfix/smtp[30900]: D3A306D098C: to=<[email protected]>, relay=none, delay=20, delays=0.05/0.02/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=hotmail.com type=MX: Host not found, try again)
    Jun 18 06:20:51 server1 postfix/smtp[30903]: E61376D0995: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=20, delays=0.01/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=hotmail.com type=MX: Host not found, try again)
    
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Do you have valid nameservers in /etc/resolv.conf?
    Does
    Code:
    dig google.com
    work?
     
  5. cruz

    cruz New Member

    Yes dig google worked. however I have another thread you are helping me with. I do not know to continue this one. the resolv.conf is here. search domain_not_set.invalid
    nameserver 192.168.1.1
    I guess that might be the issue.How can I chage that back? or do I enter the domain for my box there?
     
  6. falko

    falko Super Moderator ISPConfig Developer

    You can leave out the search line, it's optional.
     

Share This Page