LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2015, 11:46 PM   #1
amit.kumar1108
LQ Newbie
 
Registered: Mar 2015
Posts: 6

Rep: Reputation: Disabled
Steps to convert IP address to specific url name in linux


Hello,

I have configured https site with IP with self signed certificate. Can some one help me in changing the IP with my own defined url name.

Ex: https://100.100.100.100:8443 to https://abc.com
 
Old 05-09-2015, 03:26 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,314

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
use a service like dyndns to set your domainname to youe ip, is your ip dynamic and do you own the domainname?
 
Old 05-09-2015, 10:03 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,601
Blog Entries: 1

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
If it's only local and doesn't cross the internet you can modify the /etc/hosts file and assign the IP to the name. Although you'll need to do the port override at the URL with that method.

$ echo 100.100.100.100 abc.com www.abc.com >> /etc/hosts

$ firefox https://abc.com:8443

Or something like that.

Last edited by Shadow_7; 05-09-2015 at 10:04 AM.
 
1 members found this post helpful.
Old 05-09-2015, 10:07 AM   #4
amit.kumar1108
LQ Newbie
 
Registered: Mar 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi,
The IP is static and can be access from any part of the world over internet.
I just want to change the IP to my own defined name.
Can you let me know the exact path where i can modify.
 
Old 05-09-2015, 10:20 AM   #5
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 516

Rep: Reputation: 120Reputation: 120
You have to register your domain name (if it free yet).
However I do not sure your static IP will be assigned to your desired domain name.
 
Old 05-09-2015, 10:23 AM   #6
amit.kumar1108
LQ Newbie
 
Registered: Mar 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
It is already registered. I need to just change it. Can you tell me the file name along with the path where I can change it.
 
Old 05-09-2015, 10:28 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,601
Blog Entries: 1

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by amit.kumar1108 View Post
Hi,
The IP is static and can be access from any part of the world over internet.
I just want to change the IP to my own defined name.
Can you let me know the exact path where i can modify.
You buy the name from a registar and buy a service like noip or dyndns to point the "name" to the "ip". If it's static, you can probably forgo the 2nd service in some cases. If it's only you that will ever use the "name" then you can do that on your devices through various means, like /etc/hosts, firewall, proxies, dns caching, .... Most hosting services have decent guides on the process for public DNS lookup. If you want the "name" to be usable by anyone and everywhere by "name", then you're going to have to buy more than a computer and an internet connection. And the name has to be available and for sale.
 
1 members found this post helpful.
Old 05-09-2015, 07:25 PM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Quote:
Originally Posted by amit.kumar1108 View Post
Hi,
The IP is static and can be access from any part of the world over internet.
I just want to change the IP to my own defined name.
Can you let me know the exact path where i can modify.
Note, if the name doesn't match what is embedded in the certificate, the browser will report it as bogus.
 
1 members found this post helpful.
Old 05-10-2015, 04:24 PM   #9
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,053

Rep: Reputation: 206Reputation: 206Reputation: 206
If you are using email, you ought to set up a proper DNS.
Many email systems use reverse DNS lookups as an anti-spam measure.
 
Old 05-11-2015, 05:06 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,897

Rep: Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313
Generally you buy a domain name and that company will register it. You may have to use their control panel to modify.

Not sure how well https will work over dynamic dns (DDNS) but should work.
 
Old 05-11-2015, 05:16 PM   #11
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,829
Blog Entries: 11

Rep: Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111
Quote:
Originally Posted by Shadow_7 View Post
If it's only local and doesn't cross the internet
$ echo 100.100.100.100 abc.com www.abc.com >> /etc/hosts

$ firefox https://abc.com:8443

Or something like that.
Exactly like that.
Poor Man's DNS!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bash script: Convert MS URL files to Linux desktop links xl Programming 3 11-15-2013 02:30 PM
[SOLVED] blocking ip address(es) on specific url awtz Linux - Newbie 2 04-26-2013 04:07 AM
How to convert specific word into specific colors in console shell? arfal Linux - Server 3 05-10-2012 12:40 AM
Extract URL from Firefox address bar in Linux profkhaos Programming 15 11-29-2010 12:27 PM


All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration