简体   繁体   中英

How to fix push/pulls in Mercurial HG (Potential problem with DNS)?

Today i have an issue. I cant do push/pulls in my Debian(on VM VirtualBox) using Mercurial HG. What I have:

  • Corporate VPN
  • Oracle VM Virtual Box with launched Debian-based system
  • Mercurial repository in my Debian-based system

The problem is: when I try to do a push, I get a bunch of errors Name or service not known . To solve it I tried to edit hgrc file by replacing this:
[paths]
default = http://SERVER_NAME_STRING
by this:
[paths]
default = http://SERVER_IP_ADRES
And it works! But I have to do it manually for each of hundreds hgrc files in my workspace tree. Can I fix this problem without editing of all of this files? (no matter manually or BASH scripts etc)

SOLUTION
There is 2 options:

  1. Ask your system administrator for IP address of yours corporate DNS server and edit your DNS settings, by this IP
  2. ( The easiest one ) Open /etc/hosts file and add new string of settings, by format IP_ADDRESS DOMAIN

After this action you will be able to ping your SVC server by domain.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM