hostname and dns recordsRemoving the period from a hostnameWhat's the difference between `hostname` and `uname -n`How can I set-up Postfix to handle multiple domains?Postfix won't transfer WordPress contact form emails to my Gmail accountRequiring IPv4 addressing for wi-fi connection in Bionic?Clean install of ubuntu 18.04 LTS - struggling to set dns server manuallyUbuntu 18.10 and 19.04 - Hyphen in Hostname?

Carlsen vs. Nepo this morning, why didn't Nepo win the pawn?

What are the units of the product of two signals?

How to deal with an employee who is requesting a demotion?

How do I negotiate salary when returning to a position I just left?

Why is SpaceX not also working on a smaller version of Starship?

What is the difference between "cat < filename" and "cat filename"?

Chain cassette noise

Linear constraint formulation (OR-statement)

Can a Rogue exploit a tiny familiar for automatic Sneak Attack in melee?

Suppose I capture encrypted data that I want to decrypt. Could I use a server farm to decrypt?

Why would a berry have a slow-acting poison?

How to evaluate math equation, one per line in a file?

Exactly what color was the text on monochrome terminals with green-on-black and amber-on-black screens?

Contacted by head of school regarding an issue - should I be worried?

What is the quickest way to raise Affection?

My professor changed a take-home test to an in-class test with no notice. Can I fight the grade?

What's a good use case for SELECT * in production code?

Is it necessary to wipe out vile man-eating dragons?

Is Local Stochastic Vol needed in order to price barrier options?

A bob hanging in an accelerating train moves backward. What is the force moving it backward?

What does "Massage with salt" mean in a recipe?

Was Nixon right, and if so, to what degree was he right, when he said that "... but when the president does it, that means that it is not illegal."?

Do gray aliens exist in Star Trek?

Is my friend from Egypt with a Schengen visa allowed to visit the UK?



hostname and dns records


Removing the period from a hostnameWhat's the difference between `hostname` and `uname -n`How can I set-up Postfix to handle multiple domains?Postfix won't transfer WordPress contact form emails to my Gmail accountRequiring IPv4 addressing for wi-fi connection in Bionic?Clean install of ubuntu 18.04 LTS - struggling to set dns server manuallyUbuntu 18.10 and 19.04 - Hyphen in Hostname?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















I would like to purchase a domain, say fireworks.com, and a VPS.

Supposing that I want to call my machine ubuntu-1804, I wonder how my etc/hosts file should be edited, as follows:



127.0.0.1 localhost
203.0.113.10 fireworks.com ubuntu-1804


Or as follows:



127.0.0.1 localhost.localdomain localhost
203.0.113.10 ubuntu-1804.fireworks.com ubuntu-1804


Also, Linode's documentation suggests to create an “A” record in DNS pointing to my VPS IPv4 address, and an "AAAA" record pointing to my VPS IPv6 address. Should I add these records for fireworks.com or for ubuntu-1804.fireworks.com?










share|improve this question




















  • 1





    If you also want fireworks.com locally to resolve to the same address use the first. The DNS issue is separate.

    – Thomas Ward
    Sep 16 at 16:43

















0


















I would like to purchase a domain, say fireworks.com, and a VPS.

Supposing that I want to call my machine ubuntu-1804, I wonder how my etc/hosts file should be edited, as follows:



127.0.0.1 localhost
203.0.113.10 fireworks.com ubuntu-1804


Or as follows:



127.0.0.1 localhost.localdomain localhost
203.0.113.10 ubuntu-1804.fireworks.com ubuntu-1804


Also, Linode's documentation suggests to create an “A” record in DNS pointing to my VPS IPv4 address, and an "AAAA" record pointing to my VPS IPv6 address. Should I add these records for fireworks.com or for ubuntu-1804.fireworks.com?










share|improve this question




















  • 1





    If you also want fireworks.com locally to resolve to the same address use the first. The DNS issue is separate.

    – Thomas Ward
    Sep 16 at 16:43













0













0









0








I would like to purchase a domain, say fireworks.com, and a VPS.

Supposing that I want to call my machine ubuntu-1804, I wonder how my etc/hosts file should be edited, as follows:



127.0.0.1 localhost
203.0.113.10 fireworks.com ubuntu-1804


Or as follows:



127.0.0.1 localhost.localdomain localhost
203.0.113.10 ubuntu-1804.fireworks.com ubuntu-1804


Also, Linode's documentation suggests to create an “A” record in DNS pointing to my VPS IPv4 address, and an "AAAA" record pointing to my VPS IPv6 address. Should I add these records for fireworks.com or for ubuntu-1804.fireworks.com?










share|improve this question














I would like to purchase a domain, say fireworks.com, and a VPS.

Supposing that I want to call my machine ubuntu-1804, I wonder how my etc/hosts file should be edited, as follows:



127.0.0.1 localhost
203.0.113.10 fireworks.com ubuntu-1804


Or as follows:



127.0.0.1 localhost.localdomain localhost
203.0.113.10 ubuntu-1804.fireworks.com ubuntu-1804


Also, Linode's documentation suggests to create an “A” record in DNS pointing to my VPS IPv4 address, and an "AAAA" record pointing to my VPS IPv6 address. Should I add these records for fireworks.com or for ubuntu-1804.fireworks.com?







18.04 hostname vps






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 16 at 16:15









AsarluhiAsarluhi

8232 gold badges8 silver badges20 bronze badges




8232 gold badges8 silver badges20 bronze badges










  • 1





    If you also want fireworks.com locally to resolve to the same address use the first. The DNS issue is separate.

    – Thomas Ward
    Sep 16 at 16:43












  • 1





    If you also want fireworks.com locally to resolve to the same address use the first. The DNS issue is separate.

    – Thomas Ward
    Sep 16 at 16:43







1




1





If you also want fireworks.com locally to resolve to the same address use the first. The DNS issue is separate.

– Thomas Ward
Sep 16 at 16:43





If you also want fireworks.com locally to resolve to the same address use the first. The DNS issue is separate.

– Thomas Ward
Sep 16 at 16:43










0






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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
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%2f1174568%2fhostname-and-dns-records%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1174568%2fhostname-and-dns-records%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?