Ubuntu server access without hosts file entry

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have a website hosted on a CentOS box (httpd service) as:



http://mycompany.the.global


Which I am able to access without hosts file entry in my local machine. On the home page of:



http://mycompany.the.global


I have few links to:



http://fin.mycompany.the.global
http://hr.mycompany.the.global
http://admin.mycompany.the.global


These links are not reachable. Though all these links are reachable when I make entry for these URLs in hosts file as below:



10.11.12.13 fin.mycompany.the.global
10.11.12.13 hr.mycompany.the.global
10.11.12.13 admin.mycompany.the.global


I want these to be accessible without hosts file entry in my local machine. Main page http://mycompany.the.global is accessible without hosts file entry.










share|improve this question



















  • 1




    If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
    – vidarlo
    Feb 21 at 6:23










  • But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
    – Rajeev
    Feb 21 at 9:24










  • You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
    – vidarlo
    Feb 21 at 9:26














up vote
0
down vote

favorite












I have a website hosted on a CentOS box (httpd service) as:



http://mycompany.the.global


Which I am able to access without hosts file entry in my local machine. On the home page of:



http://mycompany.the.global


I have few links to:



http://fin.mycompany.the.global
http://hr.mycompany.the.global
http://admin.mycompany.the.global


These links are not reachable. Though all these links are reachable when I make entry for these URLs in hosts file as below:



10.11.12.13 fin.mycompany.the.global
10.11.12.13 hr.mycompany.the.global
10.11.12.13 admin.mycompany.the.global


I want these to be accessible without hosts file entry in my local machine. Main page http://mycompany.the.global is accessible without hosts file entry.










share|improve this question



















  • 1




    If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
    – vidarlo
    Feb 21 at 6:23










  • But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
    – Rajeev
    Feb 21 at 9:24










  • You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
    – vidarlo
    Feb 21 at 9:26












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a website hosted on a CentOS box (httpd service) as:



http://mycompany.the.global


Which I am able to access without hosts file entry in my local machine. On the home page of:



http://mycompany.the.global


I have few links to:



http://fin.mycompany.the.global
http://hr.mycompany.the.global
http://admin.mycompany.the.global


These links are not reachable. Though all these links are reachable when I make entry for these URLs in hosts file as below:



10.11.12.13 fin.mycompany.the.global
10.11.12.13 hr.mycompany.the.global
10.11.12.13 admin.mycompany.the.global


I want these to be accessible without hosts file entry in my local machine. Main page http://mycompany.the.global is accessible without hosts file entry.










share|improve this question















I have a website hosted on a CentOS box (httpd service) as:



http://mycompany.the.global


Which I am able to access without hosts file entry in my local machine. On the home page of:



http://mycompany.the.global


I have few links to:



http://fin.mycompany.the.global
http://hr.mycompany.the.global
http://admin.mycompany.the.global


These links are not reachable. Though all these links are reachable when I make entry for these URLs in hosts file as below:



10.11.12.13 fin.mycompany.the.global
10.11.12.13 hr.mycompany.the.global
10.11.12.13 admin.mycompany.the.global


I want these to be accessible without hosts file entry in my local machine. Main page http://mycompany.the.global is accessible without hosts file entry.







hosts






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 21 at 9:09









galoget

2,1062820




2,1062820










asked Feb 21 at 6:05









Rajeev

1




1







  • 1




    If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
    – vidarlo
    Feb 21 at 6:23










  • But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
    – Rajeev
    Feb 21 at 9:24










  • You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
    – vidarlo
    Feb 21 at 9:26












  • 1




    If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
    – vidarlo
    Feb 21 at 6:23










  • But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
    – Rajeev
    Feb 21 at 9:24










  • You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
    – vidarlo
    Feb 21 at 9:26







1




1




If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
– vidarlo
Feb 21 at 6:23




If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
– vidarlo
Feb 21 at 6:23












But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
– Rajeev
Feb 21 at 9:24




But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
– Rajeev
Feb 21 at 9:24












You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
– vidarlo
Feb 21 at 9:26




You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
– vidarlo
Feb 21 at 9:26















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1008257%2fubuntu-server-access-without-hosts-file-entry%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1008257%2fubuntu-server-access-without-hosts-file-entry%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491