Issue with IP address

خرید بک لینک

Results 1 to 4 of 4

  1. Today, 06:19 AM #1

    Hi

    I need little help

    I have users that have wrong IP address in DNS zone. So I need to update about 1000 users on my server with new DNS A record. I was searching for solution however I'm not able to see it on help site.

    This is what I currently have:
    ftp A 212.XX.XX.XX
    mail A 212.XX.XX.XX
    domain.com. A 212.XX.XX.XX
    pop A 212.XX.XX.XX

    And I want to update it to:
    ftp A 212.YY.YY.YY
    mail A 212.YY.YY.YY
    domain.com. A 212.YY.YY.YY
    pop A 212.YY.YY.YY

    For all users on my server, is there any way to do this instead manually


  2. Today, 06:42 AM #2

    Update

    I fix it using perl, this is what I did

    cd /usr/local/directadmin/data/users
    perl -pi -e 's/212.XX.XX.XX/212.YY.YY.YY/' */user.conf

    cd /var/named
    perl -pi -e 's/212.XX.XX.XX/212.YY.YY.YY/' *.db

    Lest step I update named

    echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue


  3. Today, 06:54 AM #3

    We used this one in the past:

    Code:

    cd /var/named
    perl -pi -e 's/OLD_IP/NEW_IP/' *.db
    service named restart
    Related to this:
    https://help.directadmin.com/item.php?id=141

    Ah sorry, Webbera put the answer when I was writing and gettig coffee too. Had the post open, did not see his answer.

    Greetings, Richard.


  4. Today, 08:58 AM #4

    Hello,

    The script /usr/local/directadmin/scripts/ipswap.sh should do the IP replacement:

    Usage:

    Code:

    /usr/local/directadmin/scripts/ipswap.sh <oldip> <newip> [<file>]
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin


« | »

Posting Permissions

All times are GMT -7. The time now is 09:46 PM.

Powered by vBulletin® Version 4.2.5
Copyright © 2017 vBulletin Solutions Inc. All rights reserved.

DirectAdmin © 2013 JBMC Software

DirectAdmin Forums...

ما را در سایت DirectAdmin Forums دنبال می‌کنید

برچسب: نویسنده: ایمان اصلاحی بازدید: 313 تاريخ: يکشنبه 5 آذر 1396 ساعت: 10:51

صفحه بندی