Instant Dedicated BV
  • 0 Shopping Cart
  • Home
  • Store
    • Browse All
    • Metered Servers
    • Unmetered Servers
    • High Traffic Servers
    • Licensing
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Network Status
  • Affiliates
  • Contact Us
  • More
  • Account
    • Login
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. Linux
  4. Mass change in file

  Categories

FAQ
21
FreeBSD
2
Linux
20
Proxmox
5
Windows
2
Zimbra
1

  Categories

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket

Mass change in file Print

  • 44

If you have switched to a new service provider and all DNS records need to be adjusted to the new IP's, I have a command for you that fixes it in a few seconds time.

Old IP: 192.168.1.10
New IP: 10.0.0.25

# perl -pi -e 's/192.168.1.10/10.0.0.25/' /var/named/*.db

Off course this command can also be used on any other file you need to mass change data.

Was this answer helpful?

Related Articles

Block IP from your server via iptables You can block an IP (12.12.12.12) from your server with the following command: # iptables -I... Check port used in linux If you want to see which process is using which port (in this case, port 53), you can do it with... How to import and export a mysql database via ssh A mysql database can be easily imported and exported via SSH:1) You can export a MYSQL database... Enable DMA on disk - against slow disk speed We had a server performing pretty poorly and we went to investigate.It seemed the disk speed was... How do I rename a database in phpMyAdmin? You can rename a database easily via phpMyAdmin.We'll show you how it's done:Step 1. Login to...
« Back

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket
  • Contact Us
  • Terms of Service

Copyright © 2025 Instant Dedicated BV. All Rights Reserved.


Loading...
Loading...
Choose language
العربية
Azerbaijani
Català
中文
Hrvatski
Čeština
Dansk
Nederlands
English
Estonian
Persian
Français
Deutsch
עברית
Magyar
Italiano
Macedonian
Norwegian
Português
Português
Română
Русский
Español
Svenska
Türkçe
Українська

Choose Currency

€ EUR
$ USD

Generate Password

Please enter a number between 8 and 64 for the password length